====== 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^ ||(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|BEEP]] Service [[destroy_service|DESTROY]] Service [[removedir_service|REMOVEDIR]] Service [[choosecolor_service|CHOOSECOLOR]] Service [[flush_service|FLUSH]] Service [[renamedir_service|RENAMEDIR]] Service [[choosedir_service|CHOOSEDIR]] Service [[get_event_service|GET_EVENT]] Service [[renamefile_service|RENAMEFILE]] Service [[choosefile_service|CHOOSEFILE]] Service [[getlogicaldrives_service|GETLOGICALDRIVES]] Service [[runhelp_service|RUNHELP]] Service [[choosefont_service|CHOOSEFONT]] Service [[makedir_service|MAKEDIR]] Service [[runwin_service|RUNWIN]] Service [[copyfile_service|COPYFILE]] Service [[objectid_service|OBJECTID]] Service [[textrect_service|TEXTRECT]] Service [[create_service|CREATE]] Service [[objectlist_service|OBJECTLIST]] Service [[wincount_service|WINCOUNT]] Service [[cursor_service|CURSOR]] Service [[printsetup_service|PRINTSETUP]] Service [[utility|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 )