rotateRectForOrientation
public static void rotateRectForOrientation(int orientation,
Rect fullRect,
Rect partialRect)
Transform the upright full rectangle so that it bounds the original rotated image,
given by the orientation. Transform the upright partial rectangle such that it would apply
to the same region of the transformed full rectangle.
The top-left of the transformed full rectangle will always be placed at (0, 0).
- Parameters:
orientation
- The exif orientation (0, 90, 180, 270) of the original image. The
transformed full and partial rectangles will be in this orientation's
coordinate space.
fullRect
- The upright full rectangle. This rectangle will be modified.
partialRect
- The upright partial rectangle. This rectangle will be modified.