D3DXGetImageInfoFromFileInMemory function
Retrieves information about a given image file in memory.
Syntax
HRESULT D3DXGetImageInfoFromFileInMemory(
_In_ LPCVOID pSrcData,
_In_ UINT SrcDataSize,
_In_ D3DXIMAGE_INFO *pSrcInfo
);
Parameters
-
pSrcData [in]
-
Type: LPCVOID
VOID pointer to the source file in memory.
-
SrcDataSize [in]
-
Type: UINT
Size of file in memory, in bytes. .
-
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
Requirements
Requirement | Value |
---|---|
Header |
|
Library |
|
See also