LOAD_PICTURE Service
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. |
Returns
An OLE Dispatch interface pointer to the picture object.
See Also
BEEP Service
DESTROY Service
REMOVEDIR Service
CHOOSECOLOR Service
FLUSH Service
RENAMEDIR Service
CHOOSEDIR Service
GET_EVENT Service
RENAMEFILE Service
CHOOSEFILE Service
GETLOGICALDRIVES Service
RUNHELP Service
CHOOSEFONT Service
MAKEDIR Service
RUNWIN Service
COPYFILE Service
OBJECTID Service
TEXTRECT Service
CREATE Service
OBJECTLIST Service
WINCOUNT Service
CURSOR Service
PRINTSETUP Service
Utility function
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 )