Partager via


IImagingFactory::CreateImageEncoderToStream (Compact 2013)

3/26/2014

This feature is being deprecated for this release. Refer to this component: Windows Imaging Component.

This method creates and initializes an IImageEncoder interface to output to a stream in a specified image format.

Syntax

HRESULT CreateImageEncoderToStream(
  const CLSID* clsid,
  IStream* stream,
  IImageEncoder** encoder
);

Parameters

  • clsid
    [in] A pointer to a CLSID value that specifies the encoder's COM component.
  • stream
    [in] A pointer to an IStream interface representing the output data stream.
  • encoder
    [out] A pointer to the resulting IImageEncoder interface pointer.

Return Value

If successful, this method returns S_OK.

This method may return IMGERR_CODECNOTFOUND if it fails.

For more information, see Error Codes for the Imaging API.

Requirements

Header

imaging.h

Library

Imaging.lib

See Also

Reference

IImagingFactory
IImageEncoder

Other Resources

IStream