Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
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 |
Related topics
Cộng tác với chúng tôi trên GitHub
Bạn có thể tìm thấy nguồn cho nội dung này trên GitHub, nơi bạn cũng có thể tạo và xem lại các vấn đề và yêu cầu kéo. Để biết thêm thông tin, hãy xem hướng dẫn dành cho người đóng góp của chúng tôi.
Windows developer