40) Which of the algorithm is used to color a pixel if it is not colored and leaves it if it is already filled? a.Boundary fill algorithm b.Scan line polygon fill algorithm c.Flood fill algorithm d.All of the above
Answer: (a) Boundary fill algorithm Explanation: The Boundary fill algorithm checks whether the boundary pixels or adjacent pixels are colored or not. It leaves it, if the adjacent pixel is already filled or colored; otherwise, fill it.