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: return 0; 18: } 19: int main(void) 20: { 21: int gdriver = DETECT, gmode; 22: int x,y; 23: int bx,by; 24: int vert[10],n,i; 25: int left, top, right, bottom; 26: initgraph(&gdriver, &gmode, ""); 27: printf(" Boundary fill :\n"); 28: printf(" Enter the no. of ver