Example #1
0
 public void RotatePicture90DegreesRight(PictureBox pictureBox)
 {
     TakeSnapshot(pictureBox);
     RotateManager manager = new RotateManager();
     Image oldImage = pictureBox.Image;
     pictureBox.Size = new Size(pictureBox.Height, pictureBox.Width);
     pictureBox.Image = manager.Rotate90DegreesRight(oldImage);
 }
Example #2
0
 public void FlipPictureVertical(PictureBox pictureBox)
 {
     TakeSnapshot(pictureBox);
     RotateManager manager = new RotateManager();
     Image oldImage = pictureBox.Image;
     pictureBox.Image = manager.FlipVertical(oldImage);
 }
Example #3
0
 public void RotatePicture180Degrees(PictureBox pictureBox)
 {
     TakeSnapshot(pictureBox);
     RotateManager manager = new RotateManager();
     Image oldImage = pictureBox.Image;
     pictureBox.Image = manager.Rotate180Degrees(oldImage);
 }