Click or drag to resize

TpsResourceManagerGetImage Method

Returns an image associated with a fileName.

Namespace:  ABB.Robotics.Tps.Resources
Assembly:  ABB.Robotics.Tps.Resources (in ABB.Robotics.Tps.Resources.dll) Version: 6.5.129.0
Syntax
C#
public Image GetImage(
	string fileName
)

Parameters

fileName
Type: SystemString
Name of the image file to be loaded

Return Value

Type: Image
An Image associated with the fileName. If the file was not found, then it searches for a resource associated with the fileName. If this is not found either, the method returns null.

NOTE: The image files must be located in the Application path.

Remarks
First it looks if there is an image file from where it can load the requested image. If not it looks for an Image associated with the requested id.
See Also