ImageStream Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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. |