Silverfrost Logo About Us | Contact Us
 

IMPORT_IMAGE@

Platform

Win32(ClearWin+)

Purpose

To paste an image on to a (%gr) 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 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@

 

 

Copyright © 1999-2017 Silverfrost Limited