Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- switch (rotation)
- {
- case BitmapRotation.Clockwise90Degrees:
- case BitmapRotation.Clockwise270Degrees:
- switch (next)
- {
- case BitmapFlip.None:
- next = BitmapFlip.Vertical;
- break;
- case BitmapFlip.Vertical:
- next = BitmapFlip.None;
- break;
- case BitmapFlip.Horizontal:
- next = BitmapFlip.None;
- rotation = rotation == BitmapRotation.Clockwise90Degrees
- ? BitmapRotation.Clockwise270Degrees
- : BitmapRotation.Clockwise90Degrees;
- break;
- }
- break;
- case BitmapRotation.None:
- case BitmapRotation.Clockwise180Degrees:
- switch (next)
- {
- case BitmapFlip.None:
- next = BitmapFlip.Horizontal;
- break;
- case BitmapFlip.Horizontal:
- next = BitmapFlip.None;
- break;
- case BitmapFlip.Vertical:
- next = BitmapFlip.None;
- rotation = rotation == BitmapRotation.None
- ? BitmapRotation.Clockwise180Degrees
- : BitmapRotation.None;
- break;
- }
- break;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement