Previous Document Next Document

Object Model Reference : Classes : S : StructExportOptions : Properties : StructExportOptions.ImageType


StructExportOptions.ImageType

Property ImageType As cdrImageType

Description

Member of StructExportOptions

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.

This property returns a value of cdrImageType.

VBA example

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

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.