PDA

Click to See Complete Forum and Search --> : Help on SAVE Picture after SetPixelV


Jashugan357
Oct 25th, 2002, 06:40 AM
Ok, after using SetPixelV on a Image control, I'd like to save the result of the processing. As a BMP for example.

Once the picture is modified, if i want to save to disk, it doesn't work using the SavePicture function

Should i call a API function and give it hDC of the picture box ??

If you don't understand what i'm talking about :
http://www.vbforums.com/showthread.php?threadid=207430

sdjunky
Oct 25th, 2002, 09:09 AM
I believe ( but am not sure ) that you need to use the refresh method of the picturebox first


'...so SetPixelV stuff here

picturebox.refresh
'...do save stuff here

Shell
Oct 25th, 2002, 09:11 AM
You will need to set the autoredraw property of the picturebox to true before drawing, then refresh the picturebox, then use the savepicture function, like this:


picture1.autoredraw = true

'Do Drawing
'...

picture1.refresh
savepicture picture1.image, filename


Offcourse change picture1 in the name of the picturebox you are drawing on.

-Shell-