![]() |
Operations on Bitmaps: Flipping a Picture |
|
Flipping a Picture |
|
Flipping a picture consists of changing its vertical direction. For example you may have a picture that seems to be oriented down:
By flipping, you can make the picture point up:
To support picture flipping, you can call the same RotateFlip() method of the Image class. This time, you would use a different value for the argument. The member of the RotateFlipType enumeration used to flip a picture is RotateNoneFlipY. Here is an example of flipping a picture: System::Void Flip_Paint(System::Object^ sender,
System::Windows::Forms::PaintEventArgs^ e)
{
Bitmap ^ bmpPicture = gcnew Bitmap(L"Pushpin.jpg");
bmpPicture->RotateFlip(RotateFlipType::RotateNoneFlipY);
e->Graphics->DrawImage(bmpPicture, 10, 10);
}
|
|
|
||
| Home | Copyright © 2007 FunctionX, Inc. | |
|
|
||