IImageEncoder::InitEncoder (Windows CE 5.0)
This method initializes an image encoder object and associates it with an output stream.
HRESULT InitEncoder( IStream* stream);
Parameters
stream
[in] A pointer to an IStream interface for the output stream.If the encoder requires a seekable stream and the stream is not seekable, the call to this method fails.
You can verify whether the encoder requires a seekable stream by seeing whether the ImageCodecFlags enumeration value ImageCodecFlagsSeekableEncode is set.
Return Values
If successful, this method returns S_OK.
This method may return E_FAIL if it fails.
Remarks
Use the IImageEncoder::TerminateEncoder to break the association between the encoder and its output stream.
Requirements
OS Versions: Windows CE 5.0 and later.
Header: Imaging.h.
Link Library: Imaging.lib.
See Also
IImageEncoder | IImageEncoder::TerminateEncoder
Send Feedback on this topic to the authors