This documentation is for the old version. Go to the latest Graphics Mill docs

BmpEncoderOptions Class

This class holds possible BMP format encoder options.

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

Syntax

Visual Basic
Public NotInheritable Class BmpEncoderOptions _
	Inherits EncoderOptions
C#
public sealed class BmpEncoderOptions : EncoderOptions

Remarks

When you save image to BMP you can specify the single BMP-related setting: compression type (using Compression property).

Note

BMP supports only RLE compression for 4-bit and 8-bit images.

MediaFormat property of this class always returns value that equals to BmpFormat static field of the FormatManager class. Left and Top are meaningless for BMP and always set to 0.

Examples

This sample saves the BMP image with RLE compression:

Visual Basic
Dim bitmap As New Aurigma.GraphicsMill.Bitmap("c:\Mountain.gif")

bitmap.Save("C:\Mountain.bmp", New Aurigma.GraphicsMill.Codecs.BmpEncoderOptions( _
    Aurigma.GraphicsMill.Codecs.CompressionType.Rle))

bitmap.Dispose()
C#
using (Aurigma.GraphicsMill.Bitmap bitmap = 
           new Aurigma.GraphicsMill.Bitmap(@"C:\Mountain.gif"))
{
    bitmap.Save(@"C:\Mountain.bmp", new Aurigma.GraphicsMill.Codecs.BmpEncoderOptions(
        Aurigma.GraphicsMill.Codecs.CompressionType.Rle));
}

Inheritance Hierarchy

System.Object
L Aurigma.GraphicsMill.Codecs.EncoderOptions
L Aurigma.GraphicsMill.Codecs.BmpEncoderOptions

Thread Safety

Static members of this type are safe for multi-threaded operations. Instance members of this type are not safe for multi-threaded operations.

Object Model




See Also

Reference