PeachImage
PeachImage.Formats.Jpeg
JpegDecoderOptions Class
JPEG-specific decode options.
public sealed class JpegDecoderOptions : PeachImage.DecoderOptions
Inheritance System.Object → DecoderOptions → JpegDecoderOptions
| Properties | |
|---|---|
| DecodeRawYcck | When true and the source is really YCCK under the hood (IsYcck), the four raw, interleaved, unconverted planes are returned as Ycck32 instead of the default behavior of converting them to Cmyk32. Has no effect when the source isn’t YCCK. |
| FastUpsampling | Use fast nearest-neighbor chroma upsampling instead of the smoother (but slightly more expensive) default triangle-filter upsampling. |
| KeepAdobeCmykInverted | 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. |