Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ImageCollection.ImageFromFile(String) Method

Returns the image stored in the specified file.

Namespace: DevExpress.Utils

Assembly: DevExpress.Utils.v24.2.dll

NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core

#Declaration

public static Image ImageFromFile(
    string fileName
)

#Parameters

Name Type Description
fileName String

A string that specifies the full path to the file.

#Returns

Type Description
Image

A Image object that represents the image stored in the specified file; null if the image cannot be loaded.

#Remarks

This method accepts Icon files (.ico) and all formats supported by the FromFile method.

See Also