ImageCollection.ImageFromFile(String) Method

Returns the image stored in the specified file.

Namespace: DevExpress.Utils

Assembly: DevExpress.Utils.v20.1.dll

Declaration

public static Image ImageFromFile(
    string fileName
)
Public Shared Function ImageFromFile(
    fileName As String
) As Image

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