Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference

ID 767251
Date 6/24/2024
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

IMAGESIZE, IMAGESIZE_W

Graphics Functions: Return 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. These routines are only available for Windows.

Module

USE IFQWIN

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 type is 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).

Example

See the example in GETIMAGE.