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)
Public NotInheritable Class WbmpEncoderOptions _ Inherits EncoderOptions
public sealed class WbmpEncoderOptions : EncoderOptions
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.
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()
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()); }