Description
Creates an OLE picture object via the OleLoadPicturePath or OleCreatePictureIndirect Windows API functions.
Note: This is a Windows only function.
Parameters
Parameter | Description |
---|---|
<object> | (Required) The path and file name of the picture to load. |
Returnvalue | An OLE Dispatch interface pointer to the picture object. |
See Also
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 )