This class holds possible BMP format encoder options.
Namespace:
Aurigma.GraphicsMill.Codecs
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
Public NotInheritable Class BmpEncoderOptions _ Inherits EncoderOptions
public sealed class BmpEncoderOptions : EncoderOptions
When you save image to BMP you can specify the single BMP-related setting: compression type (using Compression property).
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.
This sample saves the BMP image with RLE compression:
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()
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)); }