Thanks for the help ... I am (slowly) learning VB 2005 graphics. Since you
were so good at answering that question I'll ask another one! I know that
with a bitmap object I can determine the color of an individual pixel by
using the getpixel method but is there some way I can determine the color of
a particular pixel in a picture box control?
Thanks.
"Chris" <no@spam.com> wrote in mes?sage
news:u6**************@TK2MSFTNGP11.phx.gbl...
AlanT wrote:
Try using the CreateGraphics() call from the picturebox
e.g.
Dim g as graphics = Dim g As Graphics =
Me.PictureBox1.CreateGraphics()
hth,
Alan.
Do it inside the OnPaint event of the picturebox if you want it to redraw
every time the picturebox refreshes. If you do it in there you won't have
to call CreateGraphics, it'll be passed to you as the event argument.
Dim g as graphics = e.graphics
Chris