1 Attachment(s)
Fail in Saving Picture to BMP file
Hi, Experts
I make a project to save a picture in PictureBox to BMP file with
VB Code:
Savepicture Picture, Filename
Command. :confused:
But It does NOT work. I dont know WHY?? Please tell me. :confused:
http://caulacbovb.com/forum/Files/thumbs/t_save_181.jpg
attachment my Project
Re: Fail in Saving Picture to BMP file
Use this
VB Code:
SavePicture Picture1.Image, "c:\myPic.bmp" 'Or Filename
Normally, when the picture is loaded from file/resource you have to use Picture1.Picture (the picture in the control Picture1), but here you are drawing to it, so you have to save the image (Picture1.Image).
Also, if you don't use the complete path in Filename (like "C:\SomeDir\Myfile.bmp"), then it will always be saved to the same path where your app is.
Re: Fail in Saving Picture to BMP file
Weldone, so Cool. Thanks so much!!