Deskew

image\bltlrgss.gif Editions  image\bltlrgss.gif Related Transactions  image\bltlrgss.gif Example

The Deskew transaction rotates the active raster image by the specified angle, optionally estimating the deskew angle if needed. Deskewing is done to straighten a crooked image. It changes the actual raster data, not just the image display. The result either is placed in a new window or overwrites the original, depending on the overwrite raster flag.

Type XTYP_EXECUTE or XTYP_REQUEST

Syntax [Deskew(docwinID, layerID, angle)]

Parameter

Data type

Values

Meaning

docwinID

DWORD

0 | docwinID

active | specific

layerID

DWORD

0

placeholder. The active raster layer is deskewed.

angle

float

between -10.00 and +10.00

specific deskew angle in degrees. See Remarks.

 

 

0

attempt to straighten automatically

Reply

Data type

Meaning

newDocwinID

DWORD

identifier of the window containing the deskewed image. See Remarks.

Remarks

A positive angle skews the image counter-clockwise.

Replies are only returned when this transaction is called as an XTYP_REQUEST. If the overwrite raster flag is set to on, newDocwinID is the original docwinID.

Release information

Added in Release 3.50.

See also

Overview: Improving raster images