ImageStream 類別

定義

IRandomAccessStreamWithContent類型的實作,用於 Imaging 命名空間。

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
繼承
Object Platform::Object IInspectable ImageStream
屬性
實作

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

屬性

CanRead

指出您是否可以讀取資料流程。

CanWrite

指出您是否可以寫入資料流程。

ContentType

傳回資料流程的資料格式。

Position

取得資料流程的位元組位移。

Size

取得或設定隨機存取資料流程的大小。

方法

CloneStream()

傳回 ImageStream的檔案資料流程。

Close()

關閉 ImageStream

Dispose()

執行與釋放 (Free)、釋放 (Release) 或重設 Unmanaged 資源相關聯之應用程式定義的工作。

FlushAsync()

以非同步方式認可目前的框架資料,並排清影像資料流程上的所有資料。

GetInputStreamAt(UInt64)

傳回資料流程中指定位置的輸入資料流程。

GetOutputStreamAt(UInt64)

傳回資料流程中指定位置的輸出資料流程。

ReadAsync(IBuffer, UInt32, InputStreamOptions)

從循序資料流程非同步讀取資料。

Seek(UInt64)

將資料流程的位置設定為指定的值。

WriteAsync(IBuffer)

以非同步方式在循序資料流程中寫入資料。

適用於