Previous Document Next Document

Object Model Reference : Classes : S : StructPaletteOptions : Properties : StructPaletteOptions.DitherIntensity


StructPaletteOptions.DitherIntensity

Property DitherIntensity As Long

Description

Member of StructPaletteOptions

The DitherIntensity property specifies the dithering intensity when converting a bitmap to a paletted mode.

VBA example

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

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.