Dear All,
How to rotate image dynamically and mannualy.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
amy whitePosted Mar 17, 2014, 2:41 AM
http://stackoverflow.com/questions/16583466/rotation-of-images-in-asp-net-c-sharp-by-using-javascript
Parveen SiwachPosted May 21, 2013, 4:44 AM
http://www.codeproject.com/Articles/69675/Text-To-Image-With-Rotation-For-The-Web
You can also try this code:
using (System.Drawing.Image myImage = System.Drawing.Image.FromFile(@"C:\ParveenSiwach.jpg"))
{
myImage.RotateFlip(System.Drawing.RotateFlipType.Rotate180FlipNone);
myImage.Save(@"C:\ParveenSiwach_New.jpg");
}
RotateFlipType has following possible values:
// Summary:
// Specifies a 180-degree clockwise rotation followed by a horizontal and vertical
// flip.
Rotate180FlipXY = 0,
//
// Summary:
// Specifies no clockwise rotation and no flipping.
RotateNoneFlipNone = 0,
//
// Summary:
// Specifies a 270-degree clockwise rotation followed by a horizontal and vertical
// flip.
Rotate270FlipXY = 1,
//
// Summary:
// Specifies a 90-degree clockwise rotation without flipping.
Rotate90FlipNone = 1,
//
// Summary:
// Specifies a 180-degree clockwise rotation without flipping.
Rotate180FlipNone = 2,
//
// Summary:
// Specifies no clockwise rotation followed by a horizontal and vertical flip.
RotateNoneFlipXY = 2,
//
// Summary:
// Specifies a 270-degree clockwise rotation without flipping.
Rotate270FlipNone = 3,
//
// Summary:
// Specifies a 90-degree clockwise rotation followed by a horizontal and vertical
// flip.
Rotate90FlipXY = 3,
//
// Summary:
// Specifies a 180-degree clockwise rotation followed by a vertical flip.
Rotate180FlipY = 4,
//
// Summary:
// Specifies no clockwise rotation followed by a horizontal flip.
RotateNoneFlipX = 4,
//
// Summary:
// Specifies a 90-degree clockwise rotation followed by a horizontal flip.
Rotate90FlipX = 5,
//
// Summary:
// Specifies a 270-degree clockwise rotation followed by a vertical flip.
Rotate270FlipY = 5,
//
// Summary:
// Specifies no clockwise rotation followed by a vertical flip.
RotateNoneFlipY = 6,
//
// Summary:
// Specifies a 180-degree clockwise rotation followed by a horizontal flip.
Rotate180FlipX = 6,
//
// Summary:
// Specifies a 90-degree clockwise rotation followed by a vertical flip.
Rotate90FlipY = 7,
//
// Summary:
// Specifies a 270-degree clockwise rotation followed by a horizontal flip.
Rotate270FlipX = 7,
This will surely help you to solve your problem.
Jagatpal SinghPosted May 21, 2013, 4:15 AM
Parveen SiwachPosted May 15, 2013, 4:46 PM
http://code.google.com/p/jqueryrotate/
or you can follow the following article:
http://ajaypatelfromsanthal.blogspot.in/2012/06/image-rotation-in-javascript.html
Hope this will help you.