Windows Dev Center

Collapse the table of content
Expand the table of content
Expand Minimize
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.

ImageStream class

An implementation of IRandomAccessStreamWithContent type used in the Imaging namespace.

Syntax


Public NotInheritable Class ImageStream
    Implements IRandomAccessStreamWithContentType, _
    IRandomAccessStream, _
    IDisposable, _
    IInputStream, _
    IOutputStream, _
    IContentTypeProvider

Members

The ImageStream class has these types of members:

Methods

The ImageStream class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.

MethodDescription
CloneStream Returns the file stream for the ImageStream.
Close [C++, JavaScript]Closes the ImageStream.
Dispose [C#, VB]Performs tasks associated with freeing, releasing, or resetting unmanaged resources.
FlushAsync Asynchronously commits the current frame data and flushes all of the data on the image stream.
GetInputStreamAt Returns an input stream at a specified location in a stream.
GetOutputStreamAt Returns an output stream at a specified location in a stream.
ReadAsync Reads data asynchronously from a sequential stream.
Seek Sets the position of the stream to the specified value.
WriteAsync Writes data asynchronously in a sequential stream.

 

Properties

The ImageStream class has these properties.

PropertyAccess typeDescription

CanRead

Read-onlyIndicates if you can read the stream.

CanWrite

Read-onlyIndicates if you can write to the stream.

ContentType

Read-onlyReturns the data format of the stream.

Position

Read-onlyGets the byte offset of the stream.

Size

Read/writeGets or sets the size of the random access stream.

 

Requirements (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Graphics.Imaging
Windows::Graphics::Imaging [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Graphics.Imaging
Windows::Graphics::Imaging [C++]

Metadata

Windows.winmd

Attributes

[MarshalingBehavior(Agile)]
[Version(0x06020000)]

See also

Object
IRandomAccessStreamWithContentType
IRandomAccessStream
IClosable
IInputStream
IOutputStream
IContentTypeProvider

 

 

Show:
© 2015 Microsoft