Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
 
 
 
 
 
 
 
Old Pages
 
Old Index
Site Map
What's New
 
Books
How To
Tips & Tricks
Tutorials
Stories
Performance
Essays
Links
Q & A
New in VB6
Free Stuff
Pictures
 
 
 
TitleFill areas "manually" using VB code
Keywordsfill, floodfill
CategoriesGraphics
 
Thanks to Mike Griffiths.

This program fills areas on a picture using VB code. See the code for details.

Note that it is much faster to use the Polygon API function to fill areas. However, the method used by this example lets you do a few other things. The original application used it to count the number of pixels colored.

This method also lets you fill areas between other polygons. For example, inside a rectangle and outside a circle. You can use the FloodFill API function but that won't tell you how big the area is, either.

 
 
Copyright © 1997-2003 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated