ImgOpen
Previous  Top  Next

Prototype

IntImage:=ImgOpen(FileName;PageNumber)

Description

It loads an image conteined in a file within the memory.

Parameters

PageNumeber: integer number showing the page number where the image is stored.

FileName: path and name of the file where it is found the image to be open.

Returned value

IntImage: integer value corresponding to the image handle.

Notes

After the image opening it needs to use ImgDelete in order to delete the image from memory.

Example

//It opens an image
image:=ImgOpen('c:\images\1.tif',0);
 
//It shows the image
imgShow(image);

//It shows a message 
ApplicationLog(_CurrentAgent,'Shown !');

//It executes other operations

//It deletes the image from memory 
imgDelete(image);