withOrientation Function
fun ScanPicture.withOrientation(newOrientation: ScanOrientation): ScanPicture
Returns this page at the given orientation.
The result is not always a copy: when the page already carries newOrientation the receiver itself is returned. Do not close or modify the result on the assumption that you own it, unless you know the orientation differed.
Return
this page when its orientation already matches, otherwise an independent copy carrying the requested orientation
Parameters
- newOrientation — the orientation the result should carry