PeachImage

PeachImage.Formats.Jpeg.JpegDecoderOptions

JpegDecoderOptions.KeepAdobeCmykInverted Property

When true, a direct-CMYK source stored in Adobe’s inverted convention (IsAdobeInvertedCmyk) is returned exactly as stored (still Cmyk32), instead of the default behavior of de-inverting it back to the standard CMYK convention. Has no effect on non-CMYK or non-inverted sources. Combining this with a TargetPixelFormat other than Cmyk32 is a contradiction — asking to keep raw inverted bytes while also asking to convert away from CMYK — and causes JpegDecodingException to be thrown before any decoding happens.

public bool KeepAdobeCmykInverted { get; init; }

Property Value

System.Boolean