makeTransform Function

fun Bitmap.makeTransform(orientation: ScanOrientation): Matrix

Builds the transform matrix that applies an EXIF orientation to this bitmap.

Return

a Matrix mapping this bitmap into the requested orientation

Parameters

  • orientation — the orientation to apply
Top