MImgLoadFromString

Functions ››
Parent Previous Next

hImage = MImgLoadFromString( sStr, nType, nFrame )

Loads an image from a string.

Parameters
sStr
String: The string 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

If SalPicGetString( picImage, PIC_FormatBitmap, sPic )
 Set hImage = MImgLoadFromString( sPic, MIMG_TYPE_BMP, 0 )

Remarks
You can pass strings to this function which were get with the following functions:
- MImgGetString
- MImgGetStringNT
- SalPicGetString
- SalPicGetImage

See also
Load functions

Created with the Personal Edition of HelpNDoc: iPhone web sites made easy