The ImageLoader class exposes methods that retrieve metadata on images used in the application. Since XAF uses images of four standard sizes, ImageLoader exposes four methods dealing with images of a particular size. The following table lists them.
Supplies metadata on an image used in dialog windows.
All the methods above take the case-insensitive imageName parameter.
ImageLoader is a singleton. So, only a single instance of the ImageLoader class can be instantiated in an application. To invoke ImageLoader's instance methods, you need to use the ImageLoader instance, accessible via the ImageLoader.Instance property. The following code snippet illustrates this. The code retrieves the BO_Customer image using the GetImageInfo method.