DecodeImageEx function
Decodes an image using a specified MIME type.
Syntax
HRESULT DecodeImageEx(
_In_ IStream *pStream,
_In_ IMapMIMEToCLSID *pMap,
_In_ IUnknown *pEventSink,
_In_ LPCWSTR pszMIMETypeParam
);
Parameters
pStream [in]
A stream of bytes.pMap [in]
A map of MIME types and CLSIDs. Specify NULL to use a default MIME map.pEventSink [in]
An object that supports the IImageDecodeEventSink interface.pszMIMETypeParam [in]
A MIME type. Specify NULL to identify the MIME type from data passed in pStream.
Return value
If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
The pMap parameter is used to determine the correct IImageDecodeFilter decoder. If pszMIMETypeParam is not NULL, the map must contain an entry for the specified MIME type.
Requirements
Minimum supported client |
Windows XP with SP2 |
Minimum supported server |
Windows Server 2003 |
Header |
Imgutil.h |
See also
Reference
Other Resources