-api-id | -api-type |
---|---|
M:Windows.Media.Capture.Frames.MediaFrameSource.SetFormatAsync(Windows.Media.Capture.Frames.MediaFrameFormat) |
winrt method |
Asynchronously sets the frame format of the MediaFrameSource.
The new frame format for the media frame source.
An asynchronous action.
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.