Object Model Reference : Classes : S : StructPaletteOptions : Properties : StructPaletteOptions.PaletteType |
Property PaletteType As cdrImagePaletteType
Member of StructPaletteOptions
The PaletteType property specifies the type of palette to use.
You can specify one of the predefined palettes (Windows, Internet Explorer, Netscape, Black Body, or VGA), or you can generate a new optimized, uniform, or adaptive palette.
The following VBA example exports the drawing using the Netscape Web-safe palette:
Sub Test() |
Dim pal As New StructPaletteOptions |
Dim flt As ExportFilter |
pal.PaletteType = cdrPaletteNetscape |
Set flt = ActiveDocument.ExportBitmap("C:\Temp\img.gif", cdrGIF, , cdrPalettedImage, PaletteOptions:=pal) |
flt.Finish |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.