Microsoft DirectX 8.1 (C++) |
Retrieves information about a given image file.
HRESULT D3DXGetImageInfoFromFile( LPCTSTR pSrcFile, D3DXIMAGE_INFO* pSrcInfo );
If the function succeeds, the return value is D3D_OK.
If the function fails, the return value can be the following.
D3DERR_INVALIDCALL |
This functions supports both Unicode and ANSI strings.
Header: Declared in D3dx8tex.h.
Import Library: Use D3dx8.lib.
D3DXGetImageInfoFromResource, D3DXGetImageInfoFromFileInMemory