In this blog we are going to see, How to Rotate image to various degree and save to the specified location.
RotateFlipTypes:
1. Rotate180FlipXY = 0,
2. RotateNoneFlipNone = 0,
3. Rotate270FlipXY = 1,
4. Rotate90FlipNone = 1,
5. Rotate180FlipNone = 2,
6. RotateNoneFlipXY = 2,
7. Rotate270FlipNone = 3,
8. Rotate90FlipXY = 3,
9. Rotate180FlipY = 4,
10.RotateNoneFlipX = 4,
11.Rotate270FlipY = 5,
12.Rotate90FlipX = 5,
13.Rotate180FlipX = 6,
14.RotateNoneFlipY = 6,
15.Rotate270FlipX = 7,
16.Rotate90FlipY = 7,
Code Snippet
public void RotateAllFlipTypeImage()
{
//Gets image from the path.
Image img = Image.FromFile(Server.MapPath("scenary.jpg"));
foreach (string str in Enum.GetNames(typeof(RotateFlipType)))
{
//Getting rotate flip type.
RotateFlipType rotateFlipType = (RotateFlipType)Enum.Parse(typeof(RotateFlipType), str);
//Rotate image
img.RotateFlip(rotateFlipType);
//Save image to specified path.
img.Save(@"D:\RotateImages\" + str + ".png");
}
}
Thanks for reading this article. Have a nice day.

Former memberPosted Apr 28, 2012, 12:26 AM
If you like <a title="juicy couture" href="http://www.juicyjewelrys.com">juicy couture</a> jewellery,you can consider the <a title="juicy couture earrings" href="http://www.juicyjewelrys.com/juicy-couture-earrings-c-4.html">juicy couture earrings</a><a title="vivienne westwood earrings" href="http://www.viviennewestwoodjewel.com/vivienne-westwood-earrings-c-9.html"></a>, <a title="juicy couture necklaces" href="http://www.juicyjewelrys.com/juicy-couture-necklaces-c-2.html">juicy couture necklaces</a> and <a title="juicy couture bracelets" href="http://www.juicyjewelrys.com/juicy-couture-bracelets-c-3.html">juicy couture bracelets</a>. Juicy couture accessories also includes <a title="juicy couture handbags" href="http://www.juicyjewelrys.com/juicy-couture-handbags-c-5.html">juicy couture handbags</a>, wallets, belts, sunglasses and so on <a title="Juicy Couture charms" href="http://www.juicyjewelrys.com/juicy-couture-charms-c-1.html" target="_blank">Juicy Couture charms</a> products.