Click here to Skip to main content
15,747,908 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello All,

I am facing one problem with Image Orientation.

I have an image control, where i am loading an Image on Load of the Page.
I have 5 buttons to to Rotate the image and save it.

I am able to change orientation(rotate) of the Image. But now i want to save the new image(changed) but i am not able to get the bytes of the changed image.

Someone suggest me - anything from which i can get the new image's changed bytes or new image area etc.

Please, if anyone can help me then it will be highly appreciable.

Ravi Jain
Updated 15-Dec-11 0:19am

1 solution

There are a couple of ways:
1) Use the Image.Save[^] method to save it to a file.
2) Convert your Image to a byte array, and do what you want with it:
MemoryStream ms = new MemoryStream();
return ms.ToArray();
Share this answer

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

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900