MediaCapture.PrepareLowLagPhotoCaptureAsync(ImageEncodingProperties) MediaCapture.PrepareLowLagPhotoCaptureAsync(ImageEncodingProperties) MediaCapture.PrepareLowLagPhotoCaptureAsync(ImageEncodingProperties) MediaCapture.PrepareLowLagPhotoCaptureAsync(ImageEncodingProperties) MediaCapture.PrepareLowLagPhotoCaptureAsync(ImageEncodingProperties) Method

Definition

Initializes the low shutter lag photo capture and provides the LowLagPhotoCapture object used to manage the recording.

public : IAsyncOperation<LowLagPhotoCapture> PrepareLowLagPhotoCaptureAsync(ImageEncodingProperties type)
IAsyncOperation<LowLagPhotoCapture> PrepareLowLagPhotoCaptureAsync(ImageEncodingProperties type) const;
public IAsyncOperation<LowLagPhotoCapture> PrepareLowLagPhotoCaptureAsync(ImageEncodingProperties type)
Public Function PrepareLowLagPhotoCaptureAsync(type As ImageEncodingProperties) As IAsyncOperation(Of LowLagPhotoCapture)
Windows.Media.Capture.MediaCapture.prepareLowLagPhotoCaptureAsync(type).done( /* Your success and error handlers */ );

Parameters

type
ImageEncodingProperties ImageEncodingProperties ImageEncodingProperties

The encoding profile used for the image.

Returns

When this method completes, a LowLagPhotoCapture object is returned which can be used to start the photo capture.

Additional features and requirements

Capabilities
backgroundMediaRecording

Remarks

Use PrepareLowLagPhotoCaptureAsync to initialize the capture. This is an asynchronous calls which returns a LowLagPhotoCapture object when it is finished, which is used to start the actual photo capture by calling LowLagPhotoCapture.CaptureAsync.

PrepareLowLagPhotoCaptureAsync must be called before LowLagPhotoCapture.CaptureAsync.

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

See also