safeMakeTransform Function
fun Bitmap?.safeMakeTransform(orientation: ScanOrientation?): Matrix
Deprecated.
Will be removed.
Builds the orientation transform for a bitmap that may be absent, returning an identity matrix when either the bitmap or the orientation is null.
Return
the transform matrix
Parameters
- orientation — the orientation to apply, or
null