Flood-Fill Algorithm - Flood-Fill is similar to Boundary-Fill. The difference is that Flood-Fill is to fill an area which I not defined by a single boundary color. void BoundaryFill(int x, int y, COLOR fill, COLOR old_color) { if (GetPixel(x,y)== old_color) { 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

Flood-Fill Algorithm - Flood-Fill is similar to Boundary-Fill. The difference is that Flood-Fill is to fill an area which I not defined by a single boundary color. void BoundaryFill(int x, int y, COLOR fill, COLOR old_color) { if (GetPixel(x,y)== old_color) { SetPixel(x,y,fill); ...

See more

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