Introduction - If you have any usage issues, please Google them yourself
Filling algorithm experiment four irregular region
Experimental subjects: irregular region filling algorithm
Purpose: Verify that the irregular region filling algorithm
Experiment: Use VC and OpenGL, irregular region filling algorithm realization.
1, will do: simple recursive irregular region filling algorithm.
2, choose to do: take up too much stack space algorithm for simple recursive shortcomings, to improve, to achieve seed filling algorithm based on scan line
Experimental requirements:
The coordinate grid drawn on the screen, each pixel occupies one lattice point, by a small filled circle.
Use the mouse to click on a way to draw irregular border region.
Seed filling algorithm, can be 4 or 8 Unicom Unicom Choose one.