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

WbmpEncoderOptions Class

This class represents WBMP format encoder options. Currently no WBMP encoder options are available.

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

Syntax

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

Remarks

You can use this class to specify WBMP file format by retrieving it into Save(String, IEncoderOptions) method.

Examples

This sample demonstrates how to convert a JPEG image into the WBMP. Draw attention, to be able to save to the WBMP format, we need to reduce colors to 1-bit color depth first.

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

bitmap.ColorManagement.ConvertToIndexed(1, Aurigma.GraphicsMill.ColorPaletteType.Bicolor, _
    Nothing)

bitmap.Save("C:\Mountain.wbmp", _
    New Aurigma.GraphicsMill.Codecs.WbmpEncoderOptions)

bitmap.Dispose()
C#
using (Aurigma.GraphicsMill.Bitmap bitmap = 
           new Aurigma.GraphicsMill.Bitmap(@"c:\Mountain.jpg"))
{
    bitmap.ColorManagement.ConvertToIndexed(1, Aurigma.GraphicsMill.ColorPaletteType.Bicolor, 
        null);

    bitmap.Save(@"C:\Mountain.wbmp", 
        new Aurigma.GraphicsMill.Codecs.WbmpEncoderOptions());
}

Inheritance Hierarchy

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

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