Delen via


JpegSubsamplingMode Enum

Definition

Specifies which chroma subsampling mode will be used for image compression in JPEG images.

public enum class JpegSubsamplingMode
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class JpegSubsamplingMode
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum JpegSubsamplingMode
var value = Windows.Graphics.Imaging.JpegSubsamplingMode.default
Public Enum JpegSubsamplingMode
Inheritance
JpegSubsamplingMode
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Fields

Name Value Description
Default 0

The default mode will be used.

Y4Cb2Cr0 1

4:2:0 (2x2) chroma subsampling will be used.

Y4Cb2Cr2 2

4:2:2 (2x1) chroma subsampling will be used.

Y4Cb4Cr4 3

4:4:4 (1x1) chroma subsampling will be used.

Remarks

Y4Cb2Cr0 has the lowest space usage and lowest image quality. Y4Cb2Cr2 provides medium space usage and image quality. Y4Cb4Cr4 has the highest space usage and highest image quality.

Applies to