API Documentation > CorelDRAW > 2025-v26 > StructExportOptions > IVGStructExportOptions
StructExportOptions.Compression property
Syntax:
Property Get Compression() As cdrCompressionType
Property Let Compression(ByVal Value As cdrCompressionType)
Remarks:
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.
Examples:
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