Skip to main content
.NET Framework 4.5.2+

ImageLoader.GetImageInfo(String, Boolean) Method

Supplies metadata on a standard-sized image.

Namespace: DevExpress.ExpressApp.Utils

Assembly: DevExpress.ExpressApp.v24.1.dll

NuGet Package: DevExpress.ExpressApp

Declaration

public ImageInfo GetImageInfo(
    string imageName,
    bool isEnabled
)

Parameters

Name Type Description
imageName String

A string holding the name of the required image. This parameter is case-insensitive.

isEnabled Boolean

true, if the retrieved image is converted to grayscale; otherwise, false.

Returns

Type Description
ImageInfo

An ImageInfo object supplying metadata on a standard-sized image.

Remarks

To customize metadata returned by the GetImageInfo method, handle the ImageLoader.CustomizeImageInfo event.

For general guidelines on using images in an XAF application, refer to the Add and Replace Icons help topic.

The following code snippet illustrates use of the GetImageInfo method. The code retrieves the Action_Open image.

using System.Drawing;
//...
var image = ImageLoader.Instance.GetImageInfo("Action_Open", false).Image;
See Also