Export (0) Print
Expand All

IWICStream interface

Represents a Windows Imaging Component (WIC) stream for referencing imaging and metadata content.

Members

The IWICStream interface inherits from IStream. IWICStream also has these types of members:

Methods

The IWICStream interface has these methods.

MethodDescription
InitializeFromFilename

Initializes a stream from a particular file.

InitializeFromIStream

Initializes a stream from another stream. Access rights are inherited from the underlying stream.

InitializeFromIStreamRegion

Initializes the stream as a substream of another stream.

InitializeFromMemory

Initializes a stream to treat a block of memory as a stream. The stream cannot grow beyond the buffer size.

 

Remarks

Decoders and metadata handlers are expected to create sub streams of whatever stream they hold when handing off control for embedded metadata to another metadata handler. If the stream is not restricted then use MAXLONGLONG as the max size and offset 0.

The IWICStream interface methods do not enable you to provide a file sharing option. To create a file stream for an image, use the SHCreateStreamOnFileEx function. This stream can then be used to create an IWICBitmapDecoder using the CreateDecoderFromStream method.

Requirements

Minimum supported client

Windows XP with SP2, Windows Vista [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 [desktop apps | Windows Store apps]

Header

Wincodec.h

IDL

Wincodec.idl

Library

Windowscodecs.lib

DLL

Windowscodecs.dll

 

 

Community Additions

ADD
Show:
© 2014 Microsoft