Bewerken

Share via


BitmapEncoder options reference

This article lists the encoding options that can be used with BitmapEncoder. An encoding option is defined by its name, which is a string, and a value in a particular data type (Windows.Foundation.PropertyType). For information about working with images, see Create, edit, and save bitmap images.

Name PropertyType Usage notes Valid formats
ImageQuality single Valid values from 0 to 1.0. Higher values indicate higher quality JPEG, JPEG-XR
CompressionQuality single Valid values from 0 to 1.0. Higher values indicate a more efficient and slower compression scheme TIFF
Lossless boolean If this is set to true, the ImageQuality option is ignored JPEG-XR
InterlaceOption boolean Whether to interlace the image PNG
FilterOption uint8 Use the PngFilterMode enumeration PNG
TiffCompressionMethod uint8 Use the TiffCompressionMode enumeration TIFF
Luminance uint32Array An array of 64 elements containing luminance quantization constants JPEG
Chrominance uint32Array An array of 64 elements containing chrominance quantization constants JPEG
JpegYCrCbSubsampling uint8 Use the JpegSubsamplingMode enumeration JPEG
SuppressApp0 boolean Whether to suppress the creation of an App0 metadata block JPEG
EnableV5Header32bppBGRA boolean Whether to encode to a version 5 BMP which supports alpha BMP