BmpWriter.Compression Property

Gets or sets a BMP compression type.

Namespace: Aurigma.GraphicsMill.Codecs
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)

Syntax

C#
public CompressionType Compression { get; set; }

Property Value

A CompressionType to write the image with. The default value is None.

Remarks

BMP format has a very limited compression support. The table below specifies what compression types are supported by this format:

Compression Type Limitations
None No limitations. Supported with all pixel formats allowed for BMP files.
Rle Can be used only if the bitmap has 4 or 8 bits per pixel (PixelFormat is Format4bppIndexed, Format8bppIndexed, or Format8bppGrayscale).

See Also

Reference