?/TD>
Microsoft DirectX 9.0

D3DXGetImageInfoFromFile Function


Retrieves information about a given image file.

Syntax

HRESULT D3DXGetImageInfoFromFile(      

    LPCSTR pSrcFile,     D3DXIMAGE_INFO *pSrcInfo );

Parameters

pSrcFile
[in] File name of image to retrieve information about. If UNICODE or _UNICODE are defined, this parameter type is LPCWSTR, otherwise, the type is LPCSTR.
pSrcInfo
[in] Pointer to a D3DXIMAGE_INFO structure to be filled with the description of the data in the source file.

Return Value

If the function succeeds, the return value is D3D_OK.

If the function fails, the return value can be the following.

D3DERR_INVALIDCALLThe method call is invalid. For example, a method's parameter may have an invalid value.


Remarks

This function supports both Unicode and ANSI strings.

Function Information

Headerd3dx9tex.h
Import libraryd3dx9.lib
Minimum operating systems Windows 98

See Also

D3DXGetImageInfoFromFileInMemory, D3DXGetImageInfoFromResource


© 2002 Microsoft Corporation. All rights reserved.