Microsoft DirectX 8.1 (C++)

D3DXGetImageInfoFromFile

Retrieves information about a given image file.

HRESULT D3DXGetImageInfoFromFile(
  LPCTSTR          pSrcFile,
  D3DXIMAGE_INFO* pSrcInfo
);

Parameters

pSrcFile
[in] File name of image to retrieve information about.
pSrcInfo
[in] Pointer to a D3DXIMAGE_INFO structure to be filled with the description of the data in the source file.

Return Values

If the function succeeds, the return value is D3D_OK.

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

D3DERR_INVALIDCALL

Remarks

This functions supports both Unicode and ANSI strings.

Requirements

  Header: Declared in D3dx8tex.h.
  Import Library: Use D3dx8.lib.

See Also

D3DXGetImageInfoFromResource, D3DXGetImageInfoFromFileInMemory