machinogodzilla
Active member
- Joined
- Mar 3, 2007
- Messages
- 25
- Programming Experience
- Beginner
Hi!
I ve created a picture box, loaded some bitmap into it and drew on top of it
with:
PictureBox.CreateGraphics.FillPolygon(System.Drawing.Brushes.Red, Points)
Now I would like to get rid of this polygon to draw a different one.
This is what I tried bt did not help much:
PicutreBox.Image = Nothing ; clears everything including the bitmap underneath.
PictureBox.CreateGraphics.Clear(Color.Transparent) ; gets rid of all drawings but also fill the picture box with black colour (why?).
PictureBox.refresh() ; this works fine except the image flickers when there are many changes in short period of time.
What else can I do?
TIA for any help!
Regards, machinogodzilla
I ve created a picture box, loaded some bitmap into it and drew on top of it
with:
PictureBox.CreateGraphics.FillPolygon(System.Drawing.Brushes.Red, Points)
Now I would like to get rid of this polygon to draw a different one.
This is what I tried bt did not help much:
PicutreBox.Image = Nothing ; clears everything including the bitmap underneath.
PictureBox.CreateGraphics.Clear(Color.Transparent) ; gets rid of all drawings but also fill the picture box with black colour (why?).
PictureBox.refresh() ; this works fine except the image flickers when there are many changes in short period of time.
What else can I do?
TIA for any help!
Regards, machinogodzilla