Previous Document Next Document

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


StructPaletteOptions.PaletteType

Property PaletteType As cdrImagePaletteType

Description

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.

VBA example

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

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.