The IMAGERESOLUTION structure provides information about the image's resolution.
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;
Size of the IMAGERESOLUTION structure, in bytes, for versioning. Use the sizeof() operator to calculate the value.
An integer specifying the unit of resolution to use. Possible values are (according to the TWAIN 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. |
Bits per pixel the acquired images will have.
Horizontal resolution of the TWAIN source while acquiring the images.
Vertical resolution of the TWAIN source while acquiring the images.
The acquired image X-direction scaling value before transferring.
The acquired image X-direction scaling value before transferring.
The acquired image rotation angle value before transfer.
The left margin of the scanning area.
The right margin of the scanning area.
The top margin of the scanning area.
The bottom margin of the scanning area.
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.