makeTransform Function

@JvmOverloads external fun makeTransform(orientation: ScanOrientation, width: Int = 0, height: Int = 0): Matrix

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

Return

a Matrix that maps the bitmap into the requested orientation

Parameters

  • orientation — the orientation to apply
  • width — the bitmap’s width in pixels, or 0 to use the untransformed size
  • height — the bitmap’s height in pixels, or 0 to use the untransformed size
Top