How can i paint a figure i've drawed in a picture box using lines?
Printable View
How can i paint a figure i've drawed in a picture box using lines?
Paint it where ?
Do you mean the line object or the picture box line method?
- Dim A
I have a figure in a PictureBox where i have drawed using PictureBox.Line. I want to fill the figure with a color, not the whole PictureBox with BackColor.
You can't fill a "shape" that is made out off lines, instead you should use the SHPE object, that can be filled!
By the way, if your figure needs to move fast, I would draw it using the line or circle methods.
You could fill the shape if you use the FloodFill() API...
I am trying to make a graph, i didn't quite get the FloodFill API, and the graph can't be made of shapes, only by lines.
How do you use the FloodFill API to fill ONLY the selected area, not the whole PictureBox?
Well floodfill works like the fill tool in mspaint.
It will only fill in shapes etc.
how can i make a graph then?
can't FloodFill() fill a closed area of lines?
I meant it will fill in an enclosed area, made up any way you want.
So if i a have an enclosed area of lines, i can fill it with FloodFill()?
Can you give me and example of how FloodFill() works, when i use it either my computer crashes or it fills the entire Form, PictureBox, or whatever i am trying to fill
I really need a good example of the FloodFill API