Description

Creates an OLE picture object via the OleLoadPicturePath or OleCreatePictureIndirect Windows API functions.

Note: This is a Windows only function.

Parameters

ParameterDescription
<object>(Required) The path and file name of the picture to load.
ReturnvalueAn OLE Dispatch interface pointer to the picture object.

See Also

Name
BEEP Service
CHOOSECOLOR Service
CHOOSEDIR Service
CHOOSEFILE Service
CHOOSEFONT Service
COPYFILE Service
CREATE Service
CURSOR Service
DESTROY Service
FLUSH Service
GET_EVENT Service
GETLOGICALDRIVES Service
MAKEDIR Service
OBJECTID Service
OBJECTLIST Service
PRINTSETUP Service
REMOVEDIR Service
RENAMEDIR Service
RENAMEFILE Service
RUNHELP Service
RUNWIN Service
TEXTRECT Service
WINCOUNT Service
HANDLE_BY_CURSOR Service
IUNKNOWN_RELEASE Service
LOAD_PICTURE Service
OBJECT_BY_CURSOR Service
PICTURE_PROPS Service

Comments

You must use the Utility IUNKNOWN_RELEASE service on the returned pointer when you are finished with it.

Example

// Load a OLE Picture object
bmpFile = ".\bmps\somepic.bmp"
pPicture = Utility( "LOAD_PICTURE", bmpFile )
// Do something with the picture object
...
// Call it's release method 
call Utility( "IUNKNOWN_RELEASE", pPicture )