GoDiagram Web Reference
LoadImage Method

This method is responsible for getting an Image.
Syntax
'Declaration
 
Public Overridable Function LoadImage() As Image
public virtual Image LoadImage()

Return Value

An Image.
Remarks

We use the Name to get an Image object from the ResourceManager. If there is no ResourceManager, we try using the DefaultResourceManager, and if that fails, we try treating the name as a filename.

The resulting Image is normally cached by this object as the Image property. If it loads the image from a file, the file may remain locked until the image is garbage collected.

If an exception occurs trying to load an image, the message is sent to trace listeners. Also, if ThrowsExceptions is true, the catch handler will rethrow the exception. If the Name is not found in the ResourceManager, this will fail silently--no exception is thrown.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

GoImage Class
GoImage Members
UnloadImage Method

 

 


© 2013. Northwoods Software Corporation. All Rights Reserved.

Send Feedback