L_BM_DESKEW
(Document/Medical only) Send this message to rotate an L_BITMAPCLASS window's bitmap to straighten it. This function typically is used to automatically straighten scanned images.
The calculated rotation is limited to 10 degrees in either direction. This message is intended for images, such as scanned documents, that are mainly horizontal lines of text. The results are less predictable with other types of images.
Parameter |
Meaning |
wParam |
Specifies whether the window should be redrawn to reflect the image changes. Use 1 to redraw the window, or 0 not to redraw it. |
lParam |
Reserved. Set to NULL. |
Returns
SUCCESS |
Function was successful. |
< 0 |
An error occurred. Refer to Return Codes. |