Previous Document Next Document
StructExportOptions.Transparent

Property Transparent As Boolean

Member of StructExportOptions

The Transparent property specifies whether the bitmap being exported has no background — that is, has a transparent background.

You can use this property only with formats that support transparency (such as, CPT, PSD, and TIFF). This property cannot be used with any other filters, including GIF and PNG. (For GIF and PNG filters, you can use the filters’ interfaces to specify a transparent color).

The following code example exports the selected objects to a Corel PHOTO-PAINT (CPT) format without a background:

Sub Test() 
 Dim opt As New StructExportOptions 
 Dim flt As ExportFilter 
 opt.ImageType = cdrRGBColorImage 
 opt.Transparent = True 
 Set flt = ActiveDocument.ExportEx("C:\Temp\img.cpt", cdrCPT10, 
cdrSelection, opt) 
 flt.Finish 
End Sub 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.