deskew

fun deskew(bitmap: Bitmap, region: FormXDocumentRegion): Bitmap

Parameters

bitmap

The bitmap to deskew

region

Normalized region in range 0~1 to deskew. Must be in the same coordinate of bitmap