Computer Science, asked by ashwatiunair3458, 1 month ago

Region filling is the process of coloring in

Answers

Answered by chanamolusathvik7
0

Answer:

Region filling is the process of filling image or region. Filling can be of boundary or interior region as shown below:  

Algorithm:

Procedure fill (x, y, color, color1: integer)

int c;

c=getpixel (x, y);

if (c!= color) (c!= color1)

{

setpixel (x, y, color)

fill (x+1, y, color, color 1);

fill (x-1, y, color, color 1);

Similar questions