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 ) |
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) |
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@ |