Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HOW TO: Flood fill and area with black and white squares 1

Status
Not open for further replies.

keepingbusy

Programmer
Apr 9, 2000
1,470
GB
Is it possible to flood fill and area with black and white squares? If so, how do you do it?

Many thanks in anticipation

Lee......

Alone we can do so little, together we can do so much
(VisFox Version 6 User)
 
Sorry the above should read... "Is it possible to flood fill an area with black and white squares?" NOT and

Lee


Alone we can do so little, together we can do so much
(VisFox Version 6 User)
 
Hi Lee,

Don't know if this will be too late to help, but you can do it ...

Open a new image at 100x100
Set Paintbrush to square /size 50 and using black “paint" a square Top Right
Then paint another Bottom Left, making sure they touch corner to corner.
If necessary, use crop to get rid of any spare canvas round your B&W squares.
Click on one of the colors in the color palette and click on the Pattern tab.
Use the downward arrow next to the Current Pattern display and find your B&W squares
Select the area and then Flood Fill

You may have to adjust sizes to fit your graphic.

Good luck ...

LRH
 
Hi LRH

No its not too late. Thanks ever so much for posting, I'll give it a try over the next few days and post back with the result

Kindest regards
Lee (KB)

VisFox Version 6 User
 
Hi Lee,

You're very welcome. Glad I wasn't too late. :)

Give me a call if you run into any problems.

Best wishes ...

LRH
 
Hi LRH

What can I say? A huge thanks to you, this completely resolved my issue for which I'm grateful. I used your suggestion and reduced the size of the paintbrush to 25 and the image to 50. That produced this result:

squares.gif


So the smaller the paintbrush, the smaller the square!

Many thanks LRH
Lee (KB)
UK
"Alone we can do so little, together we can do so much"

VisFox Version 6 User
 
Hi Lee

Congratulations! :)

Thanks for letting me know you got there and for the star ... both appreciated.

All the best for your future projects ...

LRH
[shriner]






 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top