The CreatePreviewFile transaction creates a thumbnail of the specified raster or vector image and places that preview in a file. The preview is limited in size to 320-by-320 pixels.
Type XTYP_EXECUTE
Syntax [CreatePreviewFile(docwinID, xPixels, yPixels, bColor, bAsDisplayed, formatID, "fileName")]
|
Parameter |
Data type |
Values |
Meaning |
|
docwinID |
DWORD |
0 | docwinID |
active | specific |
|
xPixels |
WORD |
1 to 320, inclusive |
width of the preview |
|
yPixels |
WORD |
1 to 320, inclusive |
height of the preview |
|
bColor |
BOOL |
0 |
create bilevel preview |
|
bAsDisplayed |
BOOL |
0 |
preview of full page |
|
formatID |
WORD |
identifier for the required format. See Remarks. | |
|
fileName |
file name including path of the output preview file | ||
Remarks
With the View edition of Imagenation, only the following can be used as formatID: 7 (BMP), 6 (PCX), 15 (TIFF--bilevel only), 12 (TIFF--bilevel only), 69 (JFIF--color only), and 50 (JFIF--color only).
Release information
Added in Release 4.20.
See also