Previous Document Next Document
StructExportOptions.SizeY

Property SizeY As Long

Member of StructExportOptions

The SizeY property returns or sets the vertical size of an exported bitmap. This property is measured in pixels.

If neither SizeX nor SizeY is specified, the size of the bitmap is calculated based on the size of the objects being exported and the specified bitmap resolution.

The following code example exports the current selection to a 100 ?100 pixel TIFF image:

Sub Test() 
 Dim opt As New StructExportOptions 
 Dim flt As ExportFilter 
 opt.SizeX = 100 
 opt.SizeY = 100 
 opt.ImageType = cdrCMYKColorImage 
 opt.Compression = cdrCompressionLZW 
 Set flt = ActiveDocument.ExportEx("C:\Temp\img.tif", cdrTIFF, 
cdrSelection, opt) 
 flt.Finish 
End Sub 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.