BmpCompression Enum

The compression used by BmpEncoder.

public enum BmpCompression

Fields

NameValueDescription
None0Uncompressed rows padded to four bytes. This is the default and the most widely readable output.
RunLength1Run-length encoded rows: BI_RLE8 for BmpPixelLayout.Indexed8 and BI_RLE4 for BmpPixelLayout.Indexed4, the only layouts the BMP run-length schemes store. The decoded pixels are identical to BmpCompression.None: the encoding is lossless. Runs never cross a row, every pixel is stored (no delta escape is written), and the output can be larger than BmpCompression.None for images without repeated pixels.