Image.RotateFlip method
Applies to: desktop apps only
The Image::RotateFlip method rotates and flips this image.
Syntax
Status RotateFlip( [in] RotateFlipType rotateFlipType );
Parameters
- rotateFlipType [in]
-
Type: RotateFlipType
Element of the RotateFlipType enumeration that specifies the type of rotation and the type of flip.
Return value
Type:
Type: Status
If the method succeeds, it returns Ok, which is an element of the Status enumeration.
If the method fails, it returns one of the other elements of the Status enumeration.
Examples
The following example creates an Image object based on a JPEG file. The code calls the Image::RotateFlip method to rotate the image clockwise 90 degrees and then flip the image vertically. The code draws the image twice: once before and once after the call to Image::RotateFlip.
VOID Example_RotateFlip(HDC hdc)
{
Graphics graphics(hdc);
Image image(L"Crayons.jpg");
graphics.DrawImage(&image, 10, 10, image.GetWidth(), image.GetHeight());
image.RotateFlip(Rotate90FlipY);
graphics.DrawImage(&image, 160, 10, image.GetWidth(), image.GetHeight());
}
Requirements
|
Minimum supported client | Windows XP, Windows 2000 Professional |
|---|---|
|
Minimum supported server | Windows 2000 Server |
|
Product | GDI+ 1.0 |
|
Header |
|
|
Library |
|
|
DLL |
|
See also
Send comments about this topic to Microsoft
Build date: 3/6/2012