LOADIMAGE, LOADIMAGE_W

Graphics Function: Reads an image from a Windows bitmap file and displays it at a specified location.

Module: USE DFLIB

Syntax

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 is of type 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 specifes the screen placement of the image in viewport coordinates. LOADIMAGE_W specifies the screen placement of the image in window coordinates.

Compatibility

STANDARD GRAPHICS QUICKWIN GRAPHICS LIB

See Also: SAVEIMAGE, SAVEIMAGE_W