Navigation:  thinBasic Modules > TImage >

TImage_Load

Previous pageReturn to chapter overviewNext page

 

Description

 

Loads an image and returns an image handle.

 

Syntax

 

hImg = TImage_Load(ImageID, sImageFullPathName)

 

Returns

 

Numeric.

The function returns a handle to the image.

Zero is returned if an error occurs.

 

Parameters

 

Name

Type

Optional

Meaning

ImageID

Number

No

A unique number assigned to the image by the programmer.

This ID will be used in all TImage_* functions to interact with the image

sImageFullPathName

String

No

The filename and path to the image file.

 

Remarks

 

Supported image file formats: BMP, ICO, JPG, TGA, PNG, TIFF.

 

Restrictions

 

See also

 

Examples