Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
D3DXGetImageInfoFromFile
Collapse the table of content
Expand the table of content

D3DXGetImageInfoFromFile function

Retrieves information about a given image file.

Syntax


HRESULT D3DXGetImageInfoFromFile(
  _In_ LPCSTR         pSrcFile,
  _In_ D3DXIMAGE_INFO *pSrcInfo
);

Parameters

pSrcFile [in]

Type: LPCSTR

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]

Type: D3DXIMAGE_INFO*

Pointer to a D3DXIMAGE_INFO structure to be filled with the description of the data in the source file.

Return value

Type: HRESULT

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 function supports both Unicode and ANSI strings.

Requirements

Header

D3dx9tex.h

Library

D3dx9.lib

See also

D3DXGetImageInfoFromFileInMemory
D3DXGetImageInfoFromResource

 

 

Community Additions

ADD
Show:
© 2015 Microsoft