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

ID 767251
Date 7/13/2023
Public

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

Document Table of Contents

SAVEIMAGE, SAVEIMAGE_W

Graphics Functions: Save an image from a specified portion of the screen into a Windows bitmap file. These routines are only available for Windows.

Module

USE IFQWIN

result = SAVEIMAGE (filename,ulxcoord,ulycoord, lrxcoord,lrycoord)

result = SAVEIMAGE_W (filename,ulwxcoord,ulwycoord, lrwxcoord,lrwycoord)

filename

(Input) Character*(*). Path of the bitmap file.

ulxcoord, ulycoord

(Input) INTEGER(4). Viewport coordinates for upper-left corner of the screen image to be captured.

lrxcoord, lrycoord

(Input) INTEGER(4). Viewport coordinates for lower-right corner of the screen image to be captured.

ulwxcoord, ulwycoord

(Input) REAL(8). Window coordinates for upper-left corner of the screen image to be captured.

lrwxcoord, lrwycoord

(Input) REAL(8). Window coordinates for lower-right corner of the screen image to be captured.

Results

The result type is INTEGER(4). The result is zero if successful; otherwise, a negative value.

The SAVEIMAGE function captures the screen image within a rectangle defined by the upper-left and lower-right screen coordinates and stores the image as a Windows bitmap file specified by filename. The image is stored with a palette containing the colors displayed on the screen.

SAVEIMAGE defines the bounding rectangle in viewport coordinates. SAVEIMAGE_W defines the bounding rectangle in window coordinates.