Aracılığıyla paylaş


ImageStream Class

Definition

An implementation of IRandomAccessStreamWithContent type used in the Imaging namespace.

public ref class ImageStream sealed : IClosable, IRandomAccessStreamWithContentType
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class ImageStream final : IClosable, IRandomAccessStreamWithContentType
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class ImageStream : System.IDisposable, IRandomAccessStreamWithContentType
Public NotInheritable Class ImageStream
Implements IDisposable, IRandomAccessStreamWithContentType
Inheritance
Object Platform::Object IInspectable ImageStream
Attributes
Implements

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Properties

CanRead

Indicates if you can read the stream.

CanWrite

Indicates if you can write to the stream.

ContentType

Returns the data format of the stream.

Position

Gets the byte offset of the stream.

Size

Gets or sets the size of the random access stream.

Methods

CloneStream()

Returns the file stream for the ImageStream.

Close()

Closes the ImageStream.

Dispose()

Performs application-defined 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(UInt64)

Returns an input stream at a specified location in a stream.

GetOutputStreamAt(UInt64)

Returns an output stream at a specified location in a stream.

ReadAsync(IBuffer, UInt32, InputStreamOptions)

Reads data asynchronously from a sequential stream.

Seek(UInt64)

Sets the position of the stream to the specified value.

WriteAsync(IBuffer)

Writes data asynchronously in a sequential stream.

Applies to