BitmapEncoder 選項參考BitmapEncoder options reference

本文列出可搭配 BitmapEncoder使用的編碼選項。This article lists the encoding options that can be used with BitmapEncoder. 編碼選項是由它的名稱和值所定義,其中的名稱是一個字串,而值則是特定資料類型 (Windows.Foundation.PropertyType)。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.

NameName PropertyTypePropertyType 使用注意事項Usage notes 有效格式Valid formats
ImageQualityImageQuality singlesingle 有效值範圍從 0 到 1.0。Valid values from 0 to 1.0. 值越高,品質越高Higher values indicate higher quality JPEG、JPEG-XRJPEG, JPEG-XR
CompressionQualityCompressionQuality singlesingle 有效值範圍從 0 到 1.0。Valid values from 0 to 1.0. 值越高,效率越高,壓縮配置越慢Higher values indicate a more efficient and slower compression scheme TIFFTIFF
LosslessLossless booleanboolean 如果設為 true,就會略過 ImageQuality 選項If this is set to true, the ImageQuality option is ignored JPEG-XRJPEG-XR
InterlaceOptionInterlaceOption booleanboolean 是否交錯影像Whether to interlace the image PNGPNG
FilterOptionFilterOption uint8uint8 使用 PngFilterMode 列舉Use the PngFilterMode enumeration PNGPNG
TiffCompressionMethodTiffCompressionMethod uint8uint8 使用 TiffCompressionMode 列舉Use the TiffCompressionMode enumeration TIFFTIFF
LuminanceLuminance uint32Arrayuint32Array 含有照度量化常數的 64 個元素的陣列An array of 64 elements containing luminance quantization constants JPEGJPEG
ChrominanceChrominance uint32Arrayuint32Array 含有色度量化常數的 64 個元素的陣列An array of 64 elements containing chrominance quantization constants JPEGJPEG
JpegYCrCbSubsamplingJpegYCrCbSubsampling uint8uint8 使用 JpegSubsamplingMode 列舉Use the JpegSubsamplingMode enumeration JPEGJPEG
SuppressApp0SuppressApp0 booleanboolean 是否抑制建立 App0 中繼資料區塊Whether to suppress the creation of an App0 metadata block JPEGJPEG
EnableV5Header32bppBGRAEnableV5Header32bppBGRA booleanboolean 是否編碼為支援 Alpha 的版本 5 BMPWhether to encode to a version 5 BMP which supports alpha BMPBMP