Re: Update a graphic and save it
- From: "Terry" <Terry@xxxxxxxxxxxxx>
- Date: Thu, 18 May 2006 16:47:54 -0700
Thanks Mike,
After posting the question, I had found some information including the
link you provided. In process of reading all the info now. I had
discovered that saving the image as opposed to the picture would keep the
text I had written, but since the image won't fit on the screen, saving it
also causes it to get 'truncated' to that portion that was visible in the
picturebox at the time it was saved. Thought that I might be able to get
away with loading the bitmap to an image control and then calling
textout(image1.picture.handle, ....., but that did not work either. So back
to reading I found on EDais.mvps.org.
Thanks again
Terry
"Mike D Sutton" <EDais@xxxxxxxx> wrote in message
news:eFjxBuseGHA.2416@xxxxxxxxxxxxxxxxxxxxxxx
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/
.
- Follow-Ups:
- Re: Update a graphic and save it
- From: John Hatpin
- Re: Update a graphic and save it
- From: Mike D Sutton
- Re: Update a graphic and save it
- References:
- Re: Update a graphic and save it
- From: Mike D Sutton
- Re: Update a graphic and save it
- Prev by Date: Re: Update a graphic and save it
- Next by Date: Re: Update a graphic and save it
- Previous by thread: Re: Update a graphic and save it
- Next by thread: Re: Update a graphic and save it
- Index(es):
Relevant Pages
|