IMAGERESOLUTION
typedef struct _IMAGERESOLUTION
{
L_UINT uStructSize;
L_INT nUnitOfResolution;
L_INT nBitsPerPixel;
L_FLOAT fHorzResolution;
L_FLOAT fVertResolution;
L_FLOAT fXScaling;
L_FLOAT fYScaling;
L_FLOAT fRotationAngle;
L_FLOAT fLeftMargin;
L_FLOAT fRightMargin;
L_FLOAT fTopMargin;
L_FLOAT fBottomMargin;
} IMAGERESOLUTION, * pIMAGERESOLUTION;
The IMAGERESOLUTION structure provides information about the images effects.
Member |
Description |
|
uStructSize |
Size of this structure in bytes, for versioning. Use the sizeof() macro to calculate this value. |
|
nUnitOfResolution |
An integer having the unit of resolution to use. Possible values are (according to the TWAIN 1.9 specification): |
|
|
Value |
Meaning |
|
TWUN_INCHES |
Inches unit. |
|
TWUN_CENTIMETERS |
Centimeters unit. |
|
TWUN_PICAS |
Picas unit. |
|
TWUN_POINTS |
Points unit. |
|
TWUN_TWIPS |
Twips unit. |
|
TWUN_PIXELS |
Pixels unit. |
nBitsPerPixel |
Bits per pixel the acquired images will have. |
|
fHorzResolution |
Horizontal resolution of the TWAIN source while acquiring the images. |
|
fVertResolution |
Vertical resolution of the TWAIN source while acquiring the images. |
|
fXScaling |
The acquired image X-direction scaling value before transferring. |
|
fYScaling |
The acquired image X-direction scaling value before transferring. |
|
fRotationAngle |
The acquired image rotation angle value before transfer. |
|
fLeftMargin |
The left margin of the scanning area. |
|
fRightMargin |
The right margin of the scanning area. |
|
fTopMargin |
The top margin of the scanning area. |
|
fBottomMargin |
The bottom margin of the scanning area. |
Comments
pIMAGERESOLUTION is a pointer to an IMAGERESOLUTION structure. Where the function parameter type is pIMAGERESOLUTION, you can declare an IMAGERESOLUTION variable, update the structure's fields, and pass the variable's address in the parameter. Declaring a pIMAGERESOLUTION variable is necessary only if your program requires a pointer.
IMAGERESOLUTION is used with the LTWAINPROPERTIES structure.