Link to home
Start Free TrialLog in
Avatar of EGormly
EGormlyFlag for United States of America

asked on

Saving a rotated image in VB

I am a VB newbie  

I previously posted a question on how to rotate an image in VB and I received this link as a solution:
https://www.experts-exchange.com/questions/21819688/Rotating-Images.html?eeSearch=true

The solution works great, I can rotate images any way I want now, but now I need to save the resulting image back to the original location.
Can someone help with that?
It needs to overwrite the original image in the original location that was loaded into Picture1.Picture.

I tried using :

SavePicture Picture2.Image, "c:\test.bmp"

But it saves only a grey image like the background of the PictureBox and not the actual image and it doesn't allow me to overwrite the original image (I do not know how to capture that variable...)


ASKER CERTIFIED SOLUTION
Avatar of FER_G
FER_G
Flag of Argentina image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of EGormly

ASKER

Thanks, thats a start!