Get amount of memory required to store graphics images.
#include <graph.h>
long __far _imagesize( short x1, short y1, short x2, short y2 );
long __far _imagesize_w( double wx1, double wy1, double wx2, double wy2 );
long __far _imagesize_wxy( struct _wxycoord __far *pwxy1,
struct _wxycoord __far *pwxy2 );
x1, y1 | Upper-left corner of bounding rectangle | |
x2, y2 | Lower-right corner of bounding rectangle | |
wx1, wy1 | Upper-left corner of bounding rectangle | |
wx2, wy2 | Lower-right corner of bounding rectangle | |
pwxy1 | Upper-left corner of bounding rectangle | |
pwxy2 | Lower-right corner of bounding rectangle |
The functions in the _imagesize family return the number of bytes needed to store the image defined by the bounding rectangle and specified by the coordinates given in the function call.
The _imagesize function defines the bounding rectangle in terms of view-coordinate points (x1, y1) and (x2, y2).
The _imagesize_w function defines the bounding rectangle in terms of window-coordinate points (x1, y1) and (x2, y2).
The _imagesize_wxy function defines the bounding rectangle in terms of the window-coordinate pairs pwxy1 and pwxy2.
The function returns the storage size of the image in bytes. There is no error return.
Standards:None
16-Bit:DOS
32-Bit:None
_getimage functions, _getvideoconfig, _putimage functions
See the example for _getimage.