Click here to Skip to main content
Click here to Skip to main content

Tagged as

Rotate PictureBox Images in C#

, 23 Jan 2012 CPOL
Rate this:
Please Sign up or sign in to vote.
How to rotate images in a PictureBox.

You can rotate images in a PictureBox using the following code..

Rotate right:

Image img = pictureBox1.Image;
img.RotateFlip(RotateFlipType.Rotate90FlipNone);
pictureBox1.Image = img;

Rotate left:

Image img = pictureBox1.Image;
img.RotateFlip(RotateFlipType.Rotate270FlipNone);
pictureBox1.Image = img;

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Dhanushka Madushan lk
Software Developer
Sri Lanka Sri Lanka
No Biography provided

Comments and Discussions

 
QuestionRotate Image C++ Code PinmemberMember 43393754-Sep-14 6:32 
QuestionExactly what I needed PinmemberWakabajashij16-Dec-13 6:52 
GeneralMy vote of 2 PinmemberI Spawn At Home4-Mar-13 21:39 
GeneralMy vote of 2 PinmemberAbed AlSayed4-Sep-12 5:35 
GeneralReason for my vote of 5 Excellent - just what I needed to kn... PinmemberMember 19049705-Feb-12 9:59 
GeneralRe: Reason for my vote of 5Excellent - just what I needed to kn... PinmemberDhanushka Madushan lk12-Apr-12 17:58 
GeneralIm new to CodeProject...just put it to check.. PinmemberDhanushka Madushan Peiris24-Jan-12 3:46 
GeneralReason for my vote of 1 pitifully Pinmembermuellerh24-Jan-12 2:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.141223.1 | Last Updated 23 Jan 2012
Article Copyright 2012 by Dhanushka Madushan lk
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid