My Profile

Ahmednagar, Maharashtra, India
I, Das ShrikKrishna J. MCA III IMSCD&R, Ahmednagar.
Showing posts with label Program to fill Ellipse Graphics(C). Show all posts
Showing posts with label Program to fill Ellipse Graphics(C). Show all posts

Thursday, 28 July 2011

Program to fill Ellipse

/* Program to fill Ellipse */
#include<stdio.h>
#include<conio.h>
#include<graphics.h>
void main()
{
int gd=DETECT,gm;
int x,y,r;
initgraph(&gd,&gm,"c:\\turboc3\\");
x=getmaxx()/2;
y=getmaxy()/2;
setcolor(5);//set border color
setbkcolor(3);//set background color
setfillstyle(2,4);//set style to fill color
fillellipse(x,y,100,50);//draw & fill color with set fill color
putpixel(x,y,YELLOW);//
getch();
closegraph();
}

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | cheap international calls