PeachImage

PeachImage.Formats.Png

PngDecoderOptions Class

PNG-specific decode options.

public sealed class PngDecoderOptions : PeachImage.DecoderOptions

Inheritance System.Object → DecoderOptions → PngDecoderOptions

Properties  
ScreenGamma The viewing display’s gamma, for optional gamma correction — mirrors libpng’s png_set_gamma(screen_gamma, file_gamma) model. When null (the default), no gamma correction is applied and decoded samples are returned exactly as encoded, regardless of any gAMA/sRGB chunk present. When set, and the source declares a file gamma (via gAMA, or implicitly 1/2.2 via sRGB), color/gray samples are corrected as output = round(max * (input / max) ^ (fileGamma / screenGamma)). Alpha is never corrected. A typical value for a conventional sRGB-ish display is 2.2.