The members of the RotateFlipType enumeration that are used to rotate a picture are:
Original | After Calling the Method | |
=> | ||
Notice that, after the method has
been called, the person is still holding the remote control with
his right hand. Here is an example:private void btnRotate_Click(object sender, EventArgs e) { Bitmap bmpPicture = new Bitmap("person1.gif"); bmpPicture.RotateFlip(RotateFlipType.Rotate90FlipNone); CreateGraphics().DrawImage(bmpPicture, 10, 10); } |
Original | |
After Calling the Method | |
Notice that, after the method has
been called, the person is still holding the remote control with
his right hand. As a result, the remote control is on opposite
sites of the pictures, indicating that it is the same hand. You can get the same result by calling the method twice with the Rotate90FlipNone member each time: private void btnRotate_Click(object sender, EventArgs e) { Bitmap bmpPicture = new Bitmap("person1.gif"); bmpPicture.RotateFlip(RotateFlipType.Rotate90FlipNone); bmpPicture.RotateFlip(RotateFlipType.Rotate90FlipNone); CreateGraphics().DrawImage(bmpPicture, 10, 10); } |
Original | After Calling the Method | |
=> | ||
Notice that, after the method has
been called, the person is still holding the remote control with
his right hand. You can get the same result by calling the method three times with the Rotate90FlipNone member each time: private void btnRotate_Click(object sender, EventArgs e) { Bitmap bmpPicture = new Bitmap("person1.gif"); bmpPicture.RotateFlip(RotateFlipType.Rotate90FlipNone); bmpPicture.RotateFlip(RotateFlipType.Rotate90FlipNone); bmpPicture.RotateFlip(RotateFlipType.Rotate90FlipNone); CreateGraphics().DrawImage(bmpPicture, 10, 10); } |
Original | |
After Calling the Method |
Original | After Calling the Method | |
=> | ||
Notice that, after the method has been called, the person is now holding the remote control with his left hand |
Original | |
After Calling the Method | |
Notice that, after the method has been called, the person is now holding the remote control with his left hand. As a consequence, the remote control is on the same side of the screen on both pictures (compare with Rotate180FlipNone) |
Original | After Calling the Method | |
=> | ||
Notice that, after the method has been called, the person is now holding the remote control with his left hand |
|
||
Home | Copyright © 2010-2022, FunctionX | |
|