Skip to main content
A newer version of this page is available. .

DXImageHelper.GetImageSource(String) Method

Retrieves the specified image from the library.

Namespace: DevExpress.Xpf.Core

Assembly: DevExpress.Xpf.Core.v18.2.dll

Declaration

public static ImageSource GetImageSource(
    string path
)

Parameters

Name Type Description
path String

A full path to an image in the library.

Returns

Type Description
ImageSource

A ImageSource object that is the retrieved image.

Remarks

Refer to the DevExpress Image Gallery topic to learn more.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GetImageSource(String) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also