IMPORT_IMAGE@

Platform

Win32, x64

Purpose

To paste an image on to a (%gr (Graphics Region)) drawing surface using an internal resource or an external file.

Syntax

INTEGER FUNCTION IMPORT_IMAGE@( RSCNAME, X, Y )
CHARACTER(*) RSCNAME
INTEGER X, Y

Description

RSCNAME is linked to a file via a resource script or is a file name enclosed in curly brackets. The file data (rather than the file name extension) determines the type of the image (.png, .jpeg, .bmp, .gif or .pcx). X and Y are pixel offsets into the %gr (Graphics Region) region.

Example

i=IMPORT_IMAGE@(rsc_name,0,0)
!The resource script contains one of the following lines.
rsc_name IMAGE png_file.png
rsc_name IMAGE jpg_file.jpg
rsc_name IMAGE bmp_file.bmp
rsc_name GIF gif_file.gif
rsc_name IMAGE pcx_file.pcx

Return value

The function returns a non-zero value when successful.

See also

EXPORT_IMAGE@, USE_GDIPLUS_IMAGE_FILES, IMPORT_BMP@, IMPORT_GIF@, IMPORT_PCX@, IMPORT_FILE_IMAGE@

 

 

Basket
Empty
 
Copyright © 1999-2024 Silverfrost Limited