Re: paintpicture
- From: "Randy Birch" <rgb_removethis@xxxxxxxx>
- Date: Tue, 28 Mar 2006 00:50:22 -0500
paintpicture only prints the graphical portion of the control; this excludes
other controls you may have in the picture box.
: Picture2.Picture = Picture2.Image '<--- what does this do?
Think of the picture box control as having two drawing surfaces - the
persistent image represented through the picture property, and the drawing
canvas represented as the image property. If you perform graphic functions
on the picture box (eg write out text to the picturebox using the Print
statement), you are drawing the text on the image canvas. In order to save
the picture you loaded into the picture property along with the new text you
added, you have to assign (combine) the image canvas image to the picture
canvas image. That's what this line does.
--
Randy Birch
MS MVP Visual Basic
http://vbnet.mvps.org/
Please reply to the newsgroups so all can participate.
"G Doucet" <someone@xxxxxxxxxxxxxxx> wrote in message
news:1K2Wf.50664$VV4.820254@xxxxxxxxxxxxxxxxxxxxxxxxxx
:I just found out about the PaintPicture method as I was searching the web a
short while ago. I am using it to print a Picture
: control. The Picture control's Picture property is a bitmap file and it
gets printed on the page fine. Unfortunately, the Label
: controls that I have in the Picture control ~don't~ get printed.
:
: In a microsoft example, http://support.microsoft.com/kb/230502/EN-US/,
(which doesn't explain exactly what I want to do), I saw
: where they wrote
:
: Picture2.Picture = Picture2.Image '<--- what does this do?
: Picture2.AutoRedraw = False
:
: Printer.Print ""
: Printer.PaintPicture Picture2.Picture, 0, 0
: Printer.EndDoc
:
: I have no idea what the first part does but I tried it and it didn't help.
:
: Does anyone have any ideas?
: Guy
:
:
.
- References:
- paintpicture
- From: G Doucet
- paintpicture
- Prev by Date: paintpicture
- Next by Date: ScrollBar
- Previous by thread: paintpicture
- Next by thread: Re: paintpicture
- Index(es):
Relevant Pages
|