| -api-id | M:Windows.Devices.PointOfService.Provider.BarcodeScannerProviderConnection.CreateFrameReaderAsync(Windows.Graphics.Imaging.BitmapPixelFormat,Windows.Graphics.Imaging.BitmapSize) |
|---|---|
| -api-type | winrt method |
| ms.custom | RS5 |
Creates a new BarcodeScannerFrameReader instance that returns frames in the preferred format and size when possible.
The preferred image format as a BitmapPixelFormat.
The preferred frame size as a BitmapSize in pixels.
A new BarcodeScannerFrameReader instance that reads frames from this BarcodeScannerProviderConnection.
If the requested format or size cannot be returned by the camera, frames will be returned using a default supported format and/or size. To ensure that the returned frames conform to a particular format or size, check the Format, Height and Width properties on the returned BarcodeScannerVideoFrame objects.