MediaCapture.PrepareLowLagPhotoCaptureAsync(ImageEncodingProperties) 方法

定義

初始化低快門延遲相片擷取,並提供用來管理錄製的 LowLagPhotoCapture 物件。

public:
 virtual IAsyncOperation<LowLagPhotoCapture ^> ^ PrepareLowLagPhotoCaptureAsync(ImageEncodingProperties ^ type) = PrepareLowLagPhotoCaptureAsync;
IAsyncOperation<LowLagPhotoCapture> PrepareLowLagPhotoCaptureAsync(ImageEncodingProperties const& type);
public IAsyncOperation<LowLagPhotoCapture> PrepareLowLagPhotoCaptureAsync(ImageEncodingProperties type);
function prepareLowLagPhotoCaptureAsync(type)
Public Function PrepareLowLagPhotoCaptureAsync (type As ImageEncodingProperties) As IAsyncOperation(Of LowLagPhotoCapture)

參數

type
ImageEncodingProperties

用於影像的編碼設定檔。

傳回

此方法完成時,會傳回 LowLagPhotoCapture 物件,可用來啟動相片擷取。

Windows 需求

應用程式功能
backgroundMediaRecording

備註

使用 PrepareLowLagPhotoCaptureAsync 初始化擷取。 這是非同步呼叫,會在完成時傳回 LowLagPhotoCapture 物件,其用來呼叫 LowLagPhotoCapture.CaptureAsync來啟動實際相片擷取。

PrepareLowLagPhotoCaptureAsync 必須在 LowLagPhotoCapture.CaptureAsync之前呼叫。

如需使用 LowLagPhotoCapture 來擷取相片的作法指引,請參閱 使用 MediaCapture 進行基本相片、視訊和音訊擷取

適用於

另請參閱