Boundary-Fill Algorithm - This algorithm starts at a point inside a region and paint the interior outward towards the boundary. - This is a simple method but not efficient: 1. It is recursive method which may occupy a large stack size in the main memory. void BoundaryFill(int x, int y, COLOR fill, COLOR boundary) { COLOR current; current=GetPixel(x,y); if (currentboundary) and (currentfill) then { SetPixel(x,y,fill); BoundaryFill(x 1,y,fill,boundary); BoundaryFill(x-1,y,fill,boundary); BoundaryFill(x,y 1,fill,boundary); BoundaryFill(x,y-1,fill,boundary); - Study24x7
Social learning Network
08 Apr 2019 02:11 PM study24x7 study24x7

Boundary-Fill Algorithm - This algorithm starts at a point inside a region and paint the interior outward towards the boundary. - This is a simple method but not efficient: 1. It is recursive method which may occupy a large stack size in the main memory. void BoundaryFill(int x, ...

See more

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles