API Documentation > CorelDRAW > 2025-v26 > StructExportOptions > IVGStructExportOptions
StructExportOptions.ImageType property
Syntax:
Property Get ImageType() As cdrImageType
Property Let ImageType(ByVal Value As cdrImageType)
Remarks:
The ImageType property returns or specifies the color model for an exported image. You must use only the color models supported by the filter. Specifying an incorrect color model may result in export failure. When the Paletted color model is specified, you can use the Document.ExportEx or Document.ExportBitmap methods to specify palette- generation options through the PaletteOptions parameter, which returns a StructPaletteOptions object.
Examples:
The following VBA example exports the shapes on the current page to a GIF file. The file is exported by using a 16-color optimized palette and the Stucki algorithm for dithering.
Sub Test()
Dim opt As New StructExportOptions
Dim pal As New StructPaletteOptions
Dim flt As ExportFilter
opt.ImageType = cdrPalettedImage
pal.DitherType = cdrDitherStucki
pal.DitherIntensity = 100
pal.NumColors = 16
pal.PaletteType = cdrPaletteOptimized
Set flt = ActiveDocument.ExportEx("C:\Temp\img.gif", cdrGIF, cdrCurrentPage, opt, pal)
flt.Finish 
End Sub