All Editions
Related Functions
Example
The IN_CreatePreviewFile function creates a thumbnail of a window and places that image in a file. The thumbnail is limited in size to 320-by-320 pixels.
Syntax
int IN_CreatePreviewFile( docwinID, xPixels, yPixels, bColor, bAsDisplayed, formatID, pFilename )
|
Parameters |
Values |
Meaning |
|
IN_DOCWIN docwinID |
0 | docwinID |
active | specific |
|
USHORT xPixels |
1 to 320 |
horizontal size of thumbnail |
|
USHORT yPixels |
1 to 320 |
vertical size of thumbnail |
|
IN_BOOL bColor |
FALSE bilevel thumbnail TRUE color thumbnail | |
|
IN_BOOL bAsDisplayed |
FALSE thumbnail of full page TRUE thumbnail of image as displayed | |
|
USHORT formatID |
file format identifier to write. See Remarks. | |
|
CHARPTR pFilename |
full file name |
name and location of the output thumbnail file |
Remarks
With the View edition of Imagenation, you can use only the following as formatID: API_FF_BMP (BMP), API_FF_PCX (PCX), API_FF_TIFFMG3T (TIFF--bilevel only), API_FF_TIFFLG3T (TIFF--bilevel only), API_FF_JFIF_Q1 (JPEG--color only), and API_FF_JFIF (JPEG--color only).
Release information
Added to Imagenation for Windows in Release 4.20.
As of Release 5.1, also available in Imagenation for UNIX.
See also