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:
http://www.experts-exchange.com/Programming/Languages/Visual_Basic/Q_21819688.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...)


EGormlyAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
FER_GConnect With a Mentor Commented:
EGormly, try to probe the next example... it works perfectly...
Regards,

http://www.pscode.com/vb/scripts/ShowCode.asp?txtCodeId=68290&lngWId=1

FerG

Saludos.
--
Ing. Fernando D. Giletta
MP: 4035 CIEC
San Fco. Cba. Arg.
0
 
EGormlyAuthor Commented:
Thanks, thats a start!
0
All Courses

From novice to tech pro — start learning today.