CapturedFrame 類別

定義

表示擷取的視訊畫面。

public ref class CapturedFrame sealed : IClosable
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.GCPressure]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class CapturedFrame final : IClosable
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.GCPressure]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class CapturedFrame : System.IDisposable
Public NotInheritable Class CapturedFrame
Implements IDisposable
繼承
Object Platform::Object IInspectable CapturedFrame
屬性
實作

Windows 需求

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

備註

使用 MediaCapture 類別擷取相片有數種不同的技術,包括 AdvancedPhotoCaptureLowLagPhotoCaptureLowLagPhotoSequenceCaptureVariablePhotoSequenceCapture。 雖然每個技術所使用的 API 集合都不同,但最終它們都會以 CapturedFrame 物件的形式將擷取的相片傳回給您。

版本歷程記錄

Windows 版本 SDK 版本 已新增值
1803 17134 BitmapProperties
1803 17134 ControlValues

屬性

BitmapProperties

取得物件,其中包含 CapturedFrame的點陣圖屬性。 這些屬性會傳達影像中繼資料,例如 EXIF 資料。

CanRead

取得值,這個值表示是否可以讀取擷取的框架。

CanWrite

取得值,這個值表示是否可以寫入所擷取的框架。

ContentType

取得所擷取框架的內容類型。

ControlValues

取得 物件,其中包含 CapturedFrame的擷取控制項中繼資料。 擷取控制項會調整擷取設定,例如 ISO 和曝光。

Height

取得擷取框架的高度

Position

取得所擷取框架的位置。

Size

取得擷取之框架的大小,以位元組為單位。

SoftwareBitmap

取得代表所擷取框架的 SoftwareBitmap 物件。

Width

取得所擷取框架的寬度。

方法

CloneStream()

建立資料流程的複本。

Close()

關閉擷取的框架物件。

Dispose()

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

FlushAsync()

以非同步方式認可並排清 CapturedFrame的所有資料。

GetInputStreamAt(UInt64)

取得位於指定位置的輸入資料流程。

GetOutputStreamAt(UInt64)

取得位於指定位置的輸出資料流程。

ReadAsync(IBuffer, UInt32, InputStreamOptions)

傳回非同步位元組讀取器物件。

Seek(UInt64)

將資料流程搜尋至指定的位置。

WriteAsync(IBuffer)

以非同步方式將指定的資料寫入資料流程。

適用於

另請參閱