Table of Contents

Enum JpegXRImageDataDiscardOption

Namespace
PaintDotNet.Imaging
Assembly
PaintDotNet.Windows.dll

Sets the amount of image frequency data to discard during a compressed domain transcode.

public enum JpegXRImageDataDiscardOption

Fields

None = 0

No image frequency data is discarded.

FlexBits = 1

The flexbits are discarded. This arbitrarily reduces the quality of the transcoded image without changing the effective resolution of the image. The exact reduction in file size and quality depends on numerous factors and cannot be exactly specified. This value returns an error specified for an interleaved alpha channel.

HighPass = 2

The high-pass frequency data band is discarded, including the flexbits. This reduces the resolution of the transcoded image by a factor of 4 in both dimensions. The actual dimensions of the transcoded image remain the same, but the image loses all detail in each 4x4 block of pixels. Therefore, the transcoded image should be downsampled accordingly whenever it is decoded.

HighPassAndFlexBits = 3

Both the high-pass and low-pass frequency data bands are discarded, including the flexbits. This reduces the resolution of the transcoded image by a factor of 16 in both dimensions. The actual dimensions of the transcoded image remain the same, but the image loses all detail in each 16x16 macroblock of pixels. Therefore, the transcoded image should be downsampled accordingly whenever it is decoded.