Example-VB |
Enables the programmer to control when thumbnail representations of the pages in the specified object (local/redirected drive, 1.x, or 3.x) are saved to a specified file format.
Ö | Imaging for Windows Professional Edition V2.0 |
Imaging for Windows Professional Edition V1.0 and V1.1 | |
Imaging for Windows 95 and 98 | |
Imaging for Windows NT 4.0 |
Image Thumbnail control
object.SaveAs(Filename,SaveOptions,FirstThumb,LastThumb)
Parameter | Data Type | Description |
Filename | String | Specifies the name of the file that will receive the saved thumbnails |
SaveOptions | Integer | Optional. Specifies the format of the file that will receive the saved thumbnails. If no format is specified, TIFF will be used. Valid values are:
1
2
3
4 Additive options are:
+256
+512
+1024
+2048
+4096
These additive options can be ORed with the main options
0x0100
0x0200
0x0400
0x0800
0x1000 |
FirstThumb | Long | Optional. Indicates the one (1) relative thumbnail that corresponds to the page of the thumbnail to be generated and saved. (1 relative means the first page that is specified by passing FirstThumb=1). The default value for this parameter is 1. |
LastThumb | Optional. Indicates the one (1) relative thumbnail that corresponds to the page of the thumbnail to be generated and saved. If this parameter is not specified, the default value of ThumbCount is used for TIFF output, and FirstThumb for BMP output. |
Use the SetSaveAsDimensions method to generate thumbnails of a different size.
In all cases, the aspect ratio of the thumbnail is kept, and the generated thumbnails are centered within the specified dimensions.
If you are saving to a 1.x document, you must include the Admin control in the project and set the FileStgLoc1x. The Admin ForceFileLinking1x property can be used if required, for 1.x document operations.