Previous Document Next Document

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


StructExportOptions.Compression

Property Compression As cdrCompressionType

Description

Member of StructExportOptions

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

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

The following VBA 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 2013 Corel Corporation. All rights reserved.