1 Reply Latest reply on Nov 26, 2008 6:22 AM by Thomas Knoll

    Build thumbnail image does not take AnalogBalance into account

      When I build a thumbnail, it does not take AnalogBalance into account.

      dng_image_preview thumbnail;

      dng_render render (host, *negative);

      // Build stage 2 image.
      negative->BuildStage2Image (host, ttShort);

      // Build stage 3 image.
      negative->BuildStage3Image (host, ttShort);

      render.SetFinalSpace (negative->IsMonochrome () ? dng_space_GrayGamma22::Get () : dng_space_sRGB ::Get ());

      render.SetFinalPixelType (ttByte);
      render.SetMaximumSize (256);

      thumbnail.fImage.Reset (render.Render ());
      thumbnail.fImage.Get()->Rotate( dng_orientation::Mirror90CCW() );

      thumbnail.fInfo.fColorSpace = thumbnail.fImage->Planes () == 1 ? previewColorSpace_GrayGamma22 : previewColorSpace_sRGB;