Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IImagingFactory::CreateImageFromStream

Windows Mobile 6.5
A version of this page is also available for
4/8/2010

This method lets an application create a decoded image object from an input stream.


HRESULT CreateImageFromStream(
  IStream* stream,
  IImage** image
);

stream

[in] A pointer to an IStream interface that provides the source data stream for the image.

image

[out] A pointer to the resulting IImage interface pointer.

If successful, this method returns S_OK.

This method may return E_POINTER if it fails.

When the decoded image object is created, it only keeps a reference to the external data source and does not immediately decode the image. The decoded image object takes over ownership of the input stream object and increments its reference count.

The application should release the stream object after the CreateImageFromStream method returns successfully.

Be aware that decoded image objects are read-only. In particular, you cannot modify the image data. However, you can display it onto a destination graphics context or push its data into an image sink. For more information, see IImage.

Headerimaging.h
LibraryImaging.lib
Windows Embedded CEWindows CE 5.0 and later
Windows MobileWindows Mobile Version 5.0 and later

Reference

IImagingFactory
IImage

Other Resources

IStream

Community Additions

Show:
© 2015 Microsoft