Re: Update a graphic and save it



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/




.



Relevant Pages

  • Re: Update a graphic and save it
    ... 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 ... TextOutrequires a hDC. ... Dim hOldBitmap As Long ...
    (microsoft.public.vb.winapi.graphics)
  • Re: copy picture out of word with full resolution?
    ... Why are you pasting the picture into Word in the first place? ... image using the web page option will create a jpg even if the original ... To preserve image quality you would be better served saving the image ... I paste a high resolution picture into Word. ...
    (microsoft.public.word.newusers)
  • Re: Saving attachments
    ... allow attachments to messages, Windows XP does neither warn of any virus or potential danger to system nor does it just stop user from saving the attachment but straightaway reboots the system, diconnecting a dial-up connection and scaring the user as to why this happened. ... And this happens even with saving of a totally innocent picture of a family member sent as attachment. ...
    (microsoft.public.windowsxp.general)
  • Re: JPEG Marker Segment Length
    ... JPEPG marker segment lenght is too ... > Saving these files to CD and trying to open on a separate ... > separate machine produces the same result. ... Picture It! ...
    (microsoft.public.windowsxp.photos)
  • Getting back input from unix(command)
    ... that make MATLAB think that its done reading the file when infact it ... I cant suppress the characters so I'm ... right now I'm still saving it to file with fwrite() and then I'm ...
    (comp.soft-sys.matlab)