Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 1.18 KB

mediaframesource_setformatasync_966320450.md

File metadata and controls

31 lines (21 loc) · 1.18 KB
-api-id -api-type
M:Windows.Media.Capture.Frames.MediaFrameSource.SetFormatAsync(Windows.Media.Capture.Frames.MediaFrameFormat)
winrt method

Windows.Media.Capture.Frames.MediaFrameSource.SetFormatAsync

-description

Asynchronously sets the frame format of the MediaFrameSource.

-parameters

-param format

The new frame format for the media frame source.

-returns

An asynchronous action.

-remarks

This method is an alternative to MediaCapture.SetEncodingPropertiesAsync, but unlike SetEncodingPropertiesAsync, this method can be used with any stream, not just the color camera preview, record, and photo capture streams.

Get the list of supported frame formats for a media frame source by accessing the SupportedFormats property.

Get the current frame format of the media frame source by accessing the CurrentFormat property.

-examples

-see-also