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.
Size of this structure in bytes, for versioning. Use the sizeof() operator to calculate this value.
An integer having 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.
Setting the fLeftMargin, fTopMargin, fRightMargin, and fBottomMargin will set the DAT_IMAGELAYOUT structure.
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.