SpeakComputers.com
Home
Software
Electronics
Desktop Computers
Laptops
Games
Handheld Devices
Mobile Phones
Cameras
Camcorders
Printers
Books
Software Downloads 2012 Software Mac Software Security Student Editions Windows 7 Office 2010
ASP.NET C# VB.NET C++ .NET Infragistics DevComponents

Rotating Images with C#

You can rotate and flip images for controls that support the image property and or the image background property.

The table below displays the supported rotation and flip type formats.

Member name Description
Rotate180FlipNone Specifies a 180-degree rotation without flipping.
Rotate180FlipX Specifies a 180-degree rotation followed by a horizontal flip.
Rotate180FlipXY Specifies a 180-degree rotation followed by a horizontal and vertical flip.
Rotate180FlipY Specifies a 180-degree rotation followed by a vertical flip.
Rotate270FlipNone Specifies a 270-degree rotation without flipping.
Rotate270FlipX Specifies a 270-degree rotation followed by a horizontal flip.
Rotate270FlipXY Specifies a 270-degree rotation followed by a horizontal and vertical flip.
Rotate270FlipY Specifies a 270-degree rotation followed by a vertical flip.
Rotate90FlipNone Specifies a 90-degree rotation without flipping.
Rotate90FlipX Specifies a 90-degree rotation followed by a horizontal flip.
Rotate90FlipXY Specifies a 90-degree rotation followed by a horizontal and vertical flip.
Rotate90FlipY Specifies a 90-degree rotation followed by a vertical flip.
RotateNoneFlipNone Specifies no rotation and no flipping.
RotateNoneFlipX Specifies no rotation followed by a horizontal flip.
RotateNoneFlipXY Specifies no rotation followed by a horizontal and vertical flip.
RotateNoneFlipY Specifies no rotation followed by a vertical flip.


To rotate an image associated with a Windows Forms Picture Box do the following.

this.pictureBox1.Image.RotateFlip(RotateFlipType.Rotate90FlipNone);
this.pictureBox1.Refresh();

To rotate an image associated with a Windows Forms Button controls do the following.

this.button1.Image.RotateFlip(RotateFlipType.Rotate90FlipNone);
this.button1.Refresh();

To rotate a background image associated the a Windows Forms Panel control do the following.

this.panel1.BackgroundImage.RotateFlip(RotateFlipType.Rotate90FlipNone);
this.panel1.Refresh();

Computer Security
AntiVirus Software
Internet Security
Parental Controls
Backup & Recovery
Computer Protection
Anti Malware
Photo & Video
Photo & Video Editing
Video Music
Desktop Publishing
Professional Design
Home Publishing
Clipart
Business & Accounting
Accounting
Payroll
Check Printing
TAX
H&R Block
Microsoft Office
Design
Graphic Design
Home Design
Garden Design
Interior Design
Computer Aided Design
3D Design
Students & Teacher
Adobe
Microsoft Office
Dragon Naturally Speaking
Corel Draw
Serif
Student/Teacher Software
Copy Right 2006 SpeakComputers.com - All Rights Reserved.
Home About Privacy Policy Resouces