imagesize

/*
Write a program in C for imagesize
*/

#include<graphics.h>
#include<conio.h>

main()
{
int gd = DETECT, gm, bytes;
 

char array[100];

initgraph(&gd, &gm, "C:\\TC\\BIN");

circle(200, 200, 50);
 

line(150, 200, 250, 200);
 

line(200, 150, 200, 250);

bytes = imagesize(150, 150, 250, 250);
 

sprintf(array, "Number of bytes required to store required area = %d", bytes);
 

outtextxy(10, 280, array);

getch();
 

closegraph();
 

return 0;
}


Post a Comment

0 Comments