Share via


TextureLoader.ImageInformationFromFile(String) Method (Microsoft.DirectX.Direct3D)

Retrieves information about a given image file.

Definition

Visual Basic Public Shared Function ImageInformationFromFile( _
    ByVal srcFile As String _
) As ImageInformation
C# public static ImageInformation ImageInformationFromFile(
    string srcFile
);
C++ public:
static ImageInformation ImageInformationFromFile(
    StringLeave SitesrcFile
);
JScript public static function ImageInformationFromFile(
    srcFile : String
) : ImageInformation;

Parameters

srcFile System.String
File name of the image whose information is being retrieved.

Return Value

Microsoft.DirectX.Direct3D.ImageInformation
An ImageInformation structure that contains the description of the data in the source file.

Remarks

Exceptions

InvalidCallException

The method call is invalid. For example, a method's parameter might contain an invalid value.