C Graphics Program For Boundary Fill in C
C Graphics Program For Boundary Fill in C Source Code:- 1: //Program to implement Boundary Fill Algorithm 2: #include <graphics.h> 3: #include <stdlib.h> 4: #include <stdio.h> 5: #include <conio.h> 6: #include "grplib.h" 7: int bfill(int x,int y,int f,int b) 8: { 9: if(getpixel(x,y) !=b && getpixel(x,y)!=f) 10: { 11: putpixel(x,y,f); 12: bfill(x+1,y,f,b); 13: bfill(x-1,y,f,b); 14: bfill(x,y+1,f,b); 15: bfill(x,y-1,f,b); 16: } 17: r...