Enum RawWhiteBalance
Where a develop's white balance comes from.
public enum RawWhiteBalance
Fields
AsShot = 0The white balance the camera recorded. The default.
Auto = 1Measured from the image, taking its average colour as gray.
Custom = 2Temperature and Tint.
Examples
RawReaderOptions develop = new()
{
WhiteBalance = RawWhiteBalance.Custom,
Temperature = 4800, // kelvin
Tint = 5, // toward magenta
Exposure = -0.5, // stops
Highlights = RawHighlightMode.Rebuild, // recover clipped colour from what was not clipped
Demosaic = RawDemosaicMethod.Malvar, // faster than the default AHD
LuminanceNoiseReduction = 20, // 0 to 100; off by default
ColorNoiseReduction = 40, // 0 to 100; 25 by default
AutoChromaticAberration = true, // fix colour fringes when no lens profile covers the file
DefaultToneCurve = true, // a contrast curve like Adobe Camera Raw's default; off by default
ConvertColorTo = Colors.ColorProfile.DisplayP3, // rendered straight into P3, the profile attached
};
using Raster photo = Raster.Load("photo.dng", context, develop);
photo.Save("photo-p3.png");