BitmapEncoder options reference

May 22, 2026 ยท View on GitHub

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.

NamePropertyTypeUsage notesValid formats
ImageQualitysingleValid values from 0 to 1.0. Higher values indicate higher qualityJPEG, JPEG-XR
CompressionQualitysingleValid values from 0 to 1.0. Higher values indicate a more efficient and slower compression schemeTIFF
LosslessbooleanIf this is set to true, the ImageQuality option is ignoredJPEG-XR
InterlaceOptionbooleanWhether to interlace the imagePNG
FilterOptionuint8Use the PngFilterMode enumerationPNG
TiffCompressionMethoduint8Use the TiffCompressionMode enumerationTIFF
Luminanceuint32ArrayAn array of 64 elements containing luminance quantization constantsJPEG
Chrominanceuint32ArrayAn array of 64 elements containing chrominance quantization constantsJPEG
JpegYCrCbSubsamplinguint8Use the JpegSubsamplingMode enumerationJPEG
SuppressApp0booleanWhether to suppress the creation of an App0 metadata blockJPEG
EnableV5Header32bppBGRAbooleanWhether to encode to a version 5 BMP which supports alphaBMP