MImgLoadFromFile

Functions ››
Parent Previous Next

hImage = MImgLoadFromFile( sFile, nType, nFrame )

Loads an image from a file.

Parameters
sFile
String: The name of the file to load

nType
Number: Specify MIMG_TYPE_UNKNOWN to let M!Image detect the type or one of the supported image types.

nFrame
Number: Frame number. See About Frames for further information.

Return
Number: Handle of the image or 0 if an error occurs

Example

Set hImage = MImgLoadFromFile( "c:\\images\\image.bmp", MIMG_TYPE_UNKNOWN, 0 )

See also
Load functions

Created with the Personal Edition of HelpNDoc: Easy Qt Help documentation editor