Previous Document Next Document
StructExportOptions.Compression

Property Compression As cdrCompressionType

Member of StructExportOptions

The Compression property specifies the type of compression used when exporting to certain bitmap-image formats. These image formats include export filters that do not provide their own built-in interfaces, including BMP, TIF, and others. This property is not used with filters that do not support compression or have a single compression method (such as GIF, PNG, JPG, CPT, and so on).

When using the FPX filter, the type of compression must be specified through the filter’s interface returned by the ExportEx or ExportBitmap methods.

The following code example exports the current page to a TIFF bitmap by using the CCITT4 compression method:

Sub Test() 
 Dim opt As New StructExportOptions 
 Dim flt As ExportFilter 
 opt.ImageType = cdrBlackAndWhiteImage 
 opt.Compression = cdrCompressionCCITT4 
 Set flt = ActiveDocument.ExportEx("C:\Temp\img.tif", cdrTIFF, 
cdrCurrentPage, opt) 
 flt.Finish 
End Sub 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.