Türkçe   |   English
Calendar
Categories
Archive
Links
Blogroll
Files

Image - RotateFlip - 04.03.2008

You can call the RotateFlip method of the Image object in order to rotate your images 90, 180 and 270 degrees in your applications. The RotateFlip method takes RotateFlipType enum as parameter. In these enums, you can call the ones with 'Flip' if you want to rotate them on X or Y axises:
 private void Form1_Load(object sender, EventArgs e)
        {
            Image img = Image.FromFile(@"C:\a.jpg");
            img.RotateFlip(RotateFlipType.Rotate90FlipX);
            pictureBox1.Image = img;
        }

 

Code

Add Comment
First Name Last Name
Web Site
E-Mail
Comment
Security Picture

Photos
Me in MSDN Forums
-   Answered the question How can i get it in the Visual C# General forum
-   Answered the question How to add the VAT to the ammount in the Visual Basic General forum
-   Contributed a proposed answer to the question How to add the VAT to the ammount in the Visual Basic General forum
-   Replied to the question How can i get it in the Visual C# General forum
-   Replied to the question How to add the VAT to the ammount in the Visual Basic General forum
-   Answered the question How to show ToolStripMenuItem's hot key? in the Windows Forms General forum
-   Contributed a proposed answer to the question How to show ToolStripMenuItem's hot key? in the Windows Forms General forum
-   Answered the question Expert to Excel Missing Some Data In Grid View in the Visual C# Language forum
-   Contributed a helpful post (total votes:1) to the forums thread Expert to Excel Missing Some Data In Grid View in the Visual C# Language forum
-   Replied to the question How to show ToolStripMenuItem's hot key? in the Windows Forms General forum
Entries
News
Articles