Bewerken

Delen via


WIA_IPS_DESKEW_X and WIA_IPS_DESKEW_Y Properties

The WIA_IPS_DESKEW_X and WIA_IPS_DESKEW_Y properties are implemented by the scanner driver if the driver supports deskewing. These two properties describe where the two upper corners of the skewed image are located within the bounding rectangle defined by WIA_IPS_XPOS, WIA_IPS_YPOS, WIA_IPS_XEXTENT, and WIA_IPS_YEXTENT properties.

The valid values for WIA_IPS_DESKEW_X must be between 0 and (WIA_IPS_XEXTENT − 1). The valid values for WIA_IPS_DESKEW_Y must be between 0 and (WIA_IPS_YEXTENT − 1). A value of 0 for both properties means that no skew correction should be performed.

Only rectangular scanning areas are supported, so these two values uniquely define the position of the image to be deskewed. A deskew angle can be calculated from these two values.