hVisPic = MImgCreateVisPic( hImage, nType )

Creates a Visual Toolchest picture from an image.

Parameters
hImage
Number: Handle of the image

nType
Number: Specify MIMG_TYPE_ICO to create an icon, MIMG_TYPE_BMP to create a bitmap or MIMG_TYPE_UNKNOWN to let M!Image determine the type.

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

Example

Set hVisPic = MImgCreateVisPic( hImage, MIMG_TYPE_ICO )

Remarks
Don't forget to free the created picture with VisPicFree.

See also
MImgCreateCopy
MImgCreateCopyEx
MImgCreateHBITMAP
MImgCreateHICON

Created with the Personal Edition of HelpNDoc: Easily create Qt Help files