IMAGESIZE, IMAGESIZE_W

Graphics Function: Returns the number of bytes needed to store the image inside the specified bounding rectangle. IMAGESIZE is useful for determining how much memory is needed for a call to GETIMAGE.

Module: USE DFLIB

Syntax

result = IMAGESIZE (x1, y1, x2, y2)
result = IMAGESIZE_W (wx1, wy1, wx2, wy2)


x1, y1
(Input) INTEGER(2). Viewport coordinates for upper-left corner of image.


x2, y2
(Input) INTEGER(2). Viewport coordinates for lower-right corner of image.


wx1, wy1
(Input) REAL(8). Window coordinates for upper-left corner of image.


wx2, wy2
(Input) REAL(8). Window coordinates for lower-right corner of image.

Results:

The result is of type INTEGER(4). The result is the storage size of an image in bytes.

IMAGESIZE defines the bounding rectangle in viewport-coordinate points (x1, y1) and (x2, y2). IMAGESIZE_W defines the bounding rectangle in window-coordinate points (wx1, wy1) and (wx2, wy2).

IMAGESIZE_W defines the bounding rectangle in terms of window-coordinate points (wx1, wy1) and (wx2, wy2).

Compatibility

STANDARD GRAPHICS QUICKWIN GRAPHICS LIB

See Also: GETIMAGE, GRSTATUS, PUTIMAGE

Example

See the example in GETIMAGE.