[RESOLVED] SavePicture Picture1.Picture
I am having a mind block. :(
I used this link to populate the image in Picture1 from a webbrowser using BitBlt.
http://www.vb-helper.com/howto_browser_capture.html
But when I use
Code:
SavePicture Picture1.Picture "C:\Sample.jpg"
it gives me Run Time Error 380 "Invalid property Value"
When I debug it, Picture1.Picture gives me a value of 0. What am I missing? How should I save this picture?
Re: SavePicture Picture1.Picture
Mindblock removed!!!
I need to make the picture permanent by using this
Code:
Picture1.Picture = Picture1.Image
Damn I hate it when I have to work on a Sunday!
Re: [RESOLVED] SavePicture Picture1.Picture
I can't test it right now but I think you can simply pass Picture1.Image to SavePicture:
SavePicture Picture1.Image "C:\Sample.jpg"
And btw assigning "jpg" extention doesn't save file in that format - image will be saved in windows bipmap format anyway.
For saving to JPEG format search forum - there are few nice samples already posted.