Partager via


IImagingFactory::CreateImageDecoder

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This method creates and initializes an IImageDecoder interface you can use to process the specified input data stream.

Syntax

HRESULT CreateImageDecoder(
  IStream*        stream,
  DecoderInitFlag flags,
  IImageDecoder** decoder
);

Parameters

  • stream
    [in] A pointer to an IStream:IUnknown interface for the stream of input data.
  • flags
    [in] A DecoderInitFlag enumeration value indicating how the image decoder should be intialized.
  • decoder
    [out] A pointer to the resulting IImageDecoder interface pointer.

Return Value

If successful, this method returns S_OK.

This method may return E_POINTER if it fails.

Remarks

This method locates the appropriate decoder based on the header bytes in the input data stream.

Requirements

Header imaging.h
Library Imaging.lib
Windows Embedded CE Windows CE 5.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

IImagingFactory
IImageDecoder
DecoderInitFlag

Other Resources

IStream