transform Function

fun Bitmap.transform(orientation: ScanOrientation): Bitmap

Returns this bitmap rotated into the given orientation, or the same bitmap if it is already displayable as-is.

Return

a rotated copy, or this bitmap unchanged when no rotation is needed

Parameters

  • orientation — the orientation to apply
Top