The header file graphics.h contains imagesize() function which returns the number of bytes required to store a bit-image.
Syntax :
unsigned int imagesize(int left, int top,
int right, int bottom);
where,
left, top, right, and bottom
define the area of the screen
in which image is stored.
Below is the implementation of imagesize() function.
Output :