Hi,
Create a bitmap. Create a graphics class from the bitmap. Draw on
the bitmap. Set the picturebox's image to the bitmap. Note the graphics
class does not have a drawpoint method draw a line with the same start and
stop point instead or an ellipse with a width of 1.
Dim bm As New Bitmap(100, 100)
Dim g As Graphics = Graphics.FromImage(bm)
g.DrawRectangle(Pens.Red, 0, 0, 50, 50)
g.FillEllipse(Brushes.Green, 10, 10, 50, 50)
g.DrawLine(Pens.Blue, 60, 60, 60, 60)
g.DrawEllipse(Pens.Blue, 60, 60, 1, 1)
picturebox1.image = bm
Ken
----------------------
"predseda" <pr**********@szm-dot-sk.no-spam.invalid> wrote in message
news:3f**********@127.0.0.1...
I would like to ask you, if you know about something like Tanner
Helland's graphic tutorials
(http://tannerhelland.tripod.com/VBGr...torial.htm)but VB.Net
compatibile.
I need to create bitmap in array and then draw it on PictureBox or
Form but fast... Classic methode bitmap.SetPixel is very slow...
Please help me.
Thanks.
pr**********@szm.sk
----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet
News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000
Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption
=---