|
-
Oct 25th, 2002, 06:40 AM
#1
Thread Starter
Junior Member
Help on SAVE Picture after SetPixelV
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
-
Oct 25th, 2002, 09:09 AM
#2
Lively Member
Refresh
I believe ( but am not sure ) that you need to use the refresh method of the picturebox first
VB Code:
'...so SetPixelV stuff here
picturebox.refresh
'...do save stuff here
"Help!!! I've installed Windows CE,ME and NT and now my computer runs like a brick" - shamelessly stolen sig
-
Oct 25th, 2002, 09:11 AM
#3
Addicted Member
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:
Code:
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-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|