ImgOpen

Top  Previous  Next

Prototype

 

IntImage:=ImgOpen(FileName;PageNumber)

 

Description

 

Loads an image from a file to memory. The image suppoerted formats are: .bmp, .tif, .jph, .png, .gif, .pdf (image only).

 

Parameters

 

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

 

FileName: A string containing a valid path and filename.

 

Returned value

 

IntImage: integer value corresponding to the image handle.

 

Notes

 

After opening an image, use ImgDelete in order to delete the image from memory.

 

Example

 

// Open an image

image:=ImgOpen('c:\images\1.tif',0);

 

// Show the image

ImgShow(image);

 

// Log a message 

ApplicationLog('Shown !');

 

// Execute other operations

 

// Delete the image from memory 

ImgDelete(image);