API Documentation > CorelDRAW > 2025-v26 > StructPaletteOptions > IVGStructPaletteOptions
StructPaletteOptions.DitherType property
Syntax:
Property Get DitherType() As cdrDitherType
Property Let DitherType(ByVal Value As cdrDitherType)
Remarks:
The DitherType property specifies the type of dithering algorithm when converting a bitmap to a paletted mode.
Examples:
The following VBA example exports the image using Floyd dithering:
Sub Test()
Dim pal As New StructPaletteOptions
Dim flt As ExportFilter
pal.NumColors = 10
pal.PaletteType = cdrPaletteOptimized
pal.DitherType = cdrDitherFloyd
pal.DitherIntensity = 100
Set flt = ActiveDocument.ExportBitmap("C:\Temp\img.gif", cdrGIF, , cdrPalettedImage, PaletteOptions:=pal)
flt.Finish 
End Sub