Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 1.57 KB

File metadata and controls

32 lines (22 loc) · 1.57 KB
-api-id M:Windows.Devices.PointOfService.Provider.BarcodeScannerProviderConnection.CreateFrameReaderAsync(Windows.Graphics.Imaging.BitmapPixelFormat,Windows.Graphics.Imaging.BitmapSize)
-api-type winrt method
ms.custom RS5

Windows.Devices.PointOfService.Provider.BarcodeScannerProviderConnection.CreateFrameReaderAsync

-description

Creates a new BarcodeScannerFrameReader instance that returns frames in the preferred format and size when possible.

-parameters

-param preferredFormat

The preferred image format as a BitmapPixelFormat.

-param preferredSize

The preferred frame size as a BitmapSize in pixels.

-returns

A new BarcodeScannerFrameReader instance that reads frames from this BarcodeScannerProviderConnection.

-remarks

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.

-see-also

-examples