Table of Contents

Enum RawHighlightMode

Namespace
Egami.Formats.Extended.Raw
Assembly
Egami.Formats.Extended.dll

What a develop does where the sensor clipped some colours but not others.

public enum RawHighlightMode

Fields

Blend = 1

Clips, then lifts what clipping removed evenly across the colours, for smoother, neutral highlights.

Clip = 0

Cuts every colour at the clipping level, so clipped areas turn white. The default.

Rebuild = 2

Rebuilds clipped colours from the ones that were not, with the colour of the surroundings. Detail returns in highlights when Exposure is lowered.

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");