RotateFlipType Enumeration
Specifies how much an image is rotated and the axis used to flip the image.
Assembly: System.Drawing (in System.Drawing.dll)
| Member name | Description | |
|---|---|---|
| Rotate180FlipNone | Specifies a 180-degree clockwise rotation without flipping. | |
| Rotate180FlipX | Specifies a 180-degree clockwise rotation followed by a horizontal flip. | |
| Rotate180FlipXY | Specifies a 180-degree clockwise rotation followed by a horizontal and vertical flip. | |
| Rotate180FlipY | Specifies a 180-degree clockwise rotation followed by a vertical flip. | |
| Rotate270FlipNone | Specifies a 270-degree clockwise rotation without flipping. | |
| Rotate270FlipX | Specifies a 270-degree clockwise rotation followed by a horizontal flip. | |
| Rotate270FlipXY | Specifies a 270-degree clockwise rotation followed by a horizontal and vertical flip. | |
| Rotate270FlipY | Specifies a 270-degree clockwise rotation followed by a vertical flip. | |
| Rotate90FlipNone | Specifies a 90-degree clockwise rotation without flipping. | |
| Rotate90FlipX | Specifies a 90-degree clockwise rotation followed by a horizontal flip. | |
| Rotate90FlipXY | Specifies a 90-degree clockwise rotation followed by a horizontal and vertical flip. | |
| Rotate90FlipY | Specifies a 90-degree clockwise rotation followed by a vertical flip. | |
| RotateNoneFlipNone | Specifies no clockwise rotation and no flipping. | |
| RotateNoneFlipX | Specifies no clockwise rotation followed by a horizontal flip. | |
| RotateNoneFlipXY | Specifies no clockwise rotation followed by a horizontal and vertical flip. | |
| RotateNoneFlipY | Specifies no clockwise rotation followed by a vertical flip. |
The image is rotated in a clockwise direction.
The following code example demonstrates how to set the RotateFlip property of an Image and the RotateFlipType enumeration.
This example is designed to be used with a Windows Form that contains a PictureBox named PictureBox1 and a button named Button1. Paste the code into a form, call InitializeBitmap from the form's constructor or Load event-handling method and associate Button1_Click with the button's Click event. Ensure the file path to the bitmap is valid on your system.
Available since 1.1