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

LOADIMAGE, LOADIMAGE_W

Graphics Functions: Read an image from a Windows bitmap file and display it at a specified location. These routines are only available for Windows.

Module

USE IFQWIN

result = LOADIMAGE (filename,xcoord,ycoord)

result = LOADIMAGE_W (filename,wxcoord,wycoord)

filename

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

xcoord, ycoord

(Input) INTEGER(4). Viewport coordinates for upper-left corner of image display.

wxcoord, wycoord

(Input) REAL(8). Window coordinates for upper-left corner of image display.

Results

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

The image is displayed with the colors in the bitmap file. If the color palette in the bitmap file is different from the current system palette, the current palette is discarded and the bitmap's palette is loaded.

LOADIMAGE specifies the screen placement of the image in viewport coordinates. LOADIMAGE_W specifies the screen placement of the image in window coordinates.