مشاركة عبر


LowLagPhotoCapture Class

Definition

Provides methods for taking a low shutter lag photo.

public ref class LowLagPhotoCapture sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Standard)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.MTA)]
class LowLagPhotoCapture final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Standard)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.MTA)]
public sealed class LowLagPhotoCapture
Public NotInheritable Class LowLagPhotoCapture
Inheritance
Object Platform::Object IInspectable LowLagPhotoCapture
Attributes

Windows requirements

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

Remarks

Use MediaCapture.PrepareLowLagPhotoCaptureAsync to initialize the capture. This is an asynchronous calls which returns a LowLagPhotoCapture object when it is finished. This must be called before CaptureAsync.

FinishAsync stops the photo capture operation and releases the LowLagPhotoCapture object and resources used by the capture photo operation. After starting a low lag photo capture, you must stop the photo capture by calling FinishAsync before your app attempts to record video with the MediaCapture object.

If the media type is changed or an effect is added, you must call MediaCapture.PrepareLowLagPhotoCaptureAsync to create a new LowLagPhotoCapture object.

For how-to guidance for using LowLagPhotoCapture to capture photos, see Basic photo, video, and audio capture with MediaCapture.

Methods

CaptureAsync()

Asynchronously captures a low shutter lag photo.

FinishAsync()

Asynchronously releases the LowLagPhotoCapture object and resources used by the capture photo operation.

Applies to

See also