|
-
Oct 8th, 2001, 12:38 PM
#1
Thread Starter
Addicted Member
Paint a picture box
How can i paint a figure i've drawed in a picture box using lines?
-
Oct 12th, 2001, 02:35 AM
#2
Retired VBF Adm1nistrator
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
Oct 12th, 2001, 08:14 AM
#3
Addicted Member
Do you mean the line object or the picture box line method?
- Dim A
-
Oct 13th, 2001, 02:10 PM
#4
Thread Starter
Addicted Member
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.
-
Oct 13th, 2001, 03:42 PM
#5
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're welcome to rate this post!
If your problem is solved, please use the Mark thread as resolved button
Wait, I'm too old to hurry!
-
Oct 15th, 2001, 02:37 AM
#6
Retired VBF Adm1nistrator
You could fill the shape if you use the FloodFill() API...
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
Oct 15th, 2001, 01:05 PM
#7
Thread Starter
Addicted Member
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?
-
Oct 16th, 2001, 02:12 AM
#8
Retired VBF Adm1nistrator
Well floodfill works like the fill tool in mspaint.
It will only fill in shapes etc.
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
Oct 17th, 2001, 11:45 AM
#9
Thread Starter
Addicted Member
how can i make a graph then?
-
Oct 17th, 2001, 11:47 AM
#10
Thread Starter
Addicted Member
can't FloodFill() fill a closed area of lines?
-
Oct 18th, 2001, 02:00 AM
#11
Retired VBF Adm1nistrator
I meant it will fill in an enclosed area, made up any way you want.
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
Oct 18th, 2001, 06:21 AM
#12
Thread Starter
Addicted Member
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
-
Oct 21st, 2001, 12:20 PM
#13
Thread Starter
Addicted Member
I really need a good example of the FloodFill API
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|