typedef struct _LWIAIMAGERESOLUTION
{
L_UINT uStructSize;
L_INT nBitsPerPixel;
L_INT nHorzResolution;
L_INT nVertResolution;
L_INT nXScaling;
L_INT nYScaling;
L_INT nRotationAngle;
L_INT nXPos;
L_INT nYPos;
L_INT nWidth;
L_INT nHeight;
} LWIAIMAGERESOLUTION, * pLWIAIMAGERESOLUTION;
The LWIAIMAGERESOLUTION structure provides information about the page coordinates and the area selected to be acquired from the scanner.
Member |
Description |
uStructSize |
Size of this structure in bytes, for versioning. Use the sizeof() macro to calculate this value. |
nBitsPerPixel |
Bits per pixel the acquired images will have. |
nHorzResolution |
Horizontal resolution of the WIA source while acquiring the images. |
nVertResolution |
Vertical resolution of the WIA source while acquiring the images. |
nXScaling |
The horizontal scaling percentage to be applied to the scanned page within the scanner device. |
|
This value can be from 1 to maximum of 65535. For example, 100 means no scaling, 50 means scaling down to 50% of the original size, and 200 means scaling up to 200% of the original size. |
|
Note: This member is only available on VISTA (WIA 2.0 version). |
nYScaling |
The vertical scaling percentage to be applied to the scanned page within the scanner device. |
|
This value can be from 1 to maximum of 65535. For example, 100 means no scaling, 50 means scaling down to 50% of the original size, and 200 means scaling up to 200% of the original size. |
|
Note: This member is only available on VISTA (WIA 2.0 version). |
nRotationAngle |
The acquired image rotation angle value before transfer. |
nXPos |
The X coordinate of the upper left corner of the scanning area. |
nYPos |
The Y coordinate of the upper left corner of the scanning area. |
nWidth |
The width of the scanning area. |
nHeight |
The height of the scanning area. |
This feature is available in LEADTOOLS version 16 or higher.
pLWIAIMAGERESOLUTION is a pointer to an LWIAIMAGERESOLUTION structure. If the function parameter type is pLWIAIMAGERESOLUTION, you can declare an LWIAIMAGERESOLUTION variable, update the structure's fields, and pass the variable's address in the parameter. Declaring a pLWIAIMAGERESOLUTION variable is necessary only if your program requires a pointer.
LWIAIMAGERESOLUTION is used with the LWIAPROPERTIES structure.