Re: Update a graphic and save it



New to this so bear with me. I am printing to a "pre-printed" form. The
user wishes to pre-view and capture a 'picture' of this as well as print it.
So my basic idea is to scan in the form and then 'update it' with the text
that I am going to send to the printer, and then save the updated image as a
new file. Had hoped that it would be as easy as loading a picture box with
the image, printing on it and saving the image with the savepicture function,
but that dosent work! So it looks like I need to get into the API. Anyone
have some code they want to share?
Also, since I am going to pre-view the form, how do I 'scale' it down to
fit on the screen?
Any help or comments are greatly appreciated.

Should work, make sure you're saving the .Image as opposed to .Picture property though.
If you want to go the API route then my SaveDIB() function here will do the image writing part for you:
http://groups.google.co.uk/group/microsoft.public.vb.winapi.graphics/msg/26cdd9a91c0020df
Hope this helps,

Mike


- Microsoft Visual Basic MVP -
E-Mail: EDais@xxxxxxxx
WWW: Http://EDais.mvps.org/


.