C# Класс ZXing.Mobile.ZXingScannerControl

Наследование: System.Windows.Controls.UserControl, IDisposable, IScannerView
Показать файл Открыть проект

Открытые методы

Метод Описание
AutoFocus ( ) : void
AutoFocus ( int x, int y ) : void
AutoFocusAsync ( int x, int y, bool useCoordinates ) : Task
Cancel ( ) : Task
Dispose ( ) : void
PauseAnalysis ( ) : void
ResumeAnalysis ( ) : void
StartScanning ( Action scanCallback, ZXing.Mobile.MobileBarcodeScanningOptions options = null ) : void
StartScanningAsync ( Action scanCallback, ZXing.Mobile.MobileBarcodeScanningOptions options = null ) : Task
StopScanning ( ) : void
StopScanningAsync ( ) : Task
ToggleTorch ( ) : void
Torch ( bool on ) : void
ZXingScannerControl ( ) : System

Защищенные методы

Метод Описание
OnPointerPressed ( PointerRoutedEventArgs e ) : void
OnTapped ( TappedRoutedEventArgs e ) : void

Приватные методы

Метод Описание
CalculatePreviewRotation ( VideoRotation &sourceRotation, int &rotationDegrees ) : void

Reads the current orientation of the app and calculates the VideoRotation necessary to ensure the preview is rendered in the correct orientation.

ConvertUiTapToPreviewRect ( Point tap, Size size, Rect previewRect ) : Rect

Applies the necessary rotation to a tap on a CaptureElement (with Stretch mode set to Uniform) to account for device orientation

GetFilteredCameraOrDefaultAsync ( ZXing.Mobile.MobileBarcodeScanningOptions options ) : Task
GetPreviewResolution ( IMediaEncodingProperties props ) : Size
GetPreviewStreamRectInControl ( Size previewResolution, CaptureElement previewControl ) : Rect

Calculates the size and location of the rectangle that contains the preview stream within the preview control, when the scaling mode is Uniform

SetPreviewRotationAsync ( IMediaEncodingProperties props ) : Task

Gets the current orientation of the UI in relation to the device and applies a corrective rotation to the preview

SetupAutoFocus ( ) : Task
buttonToggleFlash_Click ( object sender, RoutedEventArgs e ) : void
displayInformation_OrientationChanged ( DisplayInformation sender, object args ) : void

Описание методов

AutoFocus() публичный Метод

public AutoFocus ( ) : void
Результат void

AutoFocus() публичный Метод

public AutoFocus ( int x, int y ) : void
x int
y int
Результат void

AutoFocusAsync() публичный Метод

public AutoFocusAsync ( int x, int y, bool useCoordinates ) : Task
x int
y int
useCoordinates bool
Результат Task

Cancel() публичный Метод

public Cancel ( ) : Task
Результат Task

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

OnPointerPressed() защищенный Метод

protected OnPointerPressed ( PointerRoutedEventArgs e ) : void
e PointerRoutedEventArgs
Результат void

OnTapped() защищенный Метод

protected OnTapped ( TappedRoutedEventArgs e ) : void
e TappedRoutedEventArgs
Результат void

PauseAnalysis() публичный Метод

public PauseAnalysis ( ) : void
Результат void

ResumeAnalysis() публичный Метод

public ResumeAnalysis ( ) : void
Результат void

StartScanning() публичный Метод

public StartScanning ( Action scanCallback, ZXing.Mobile.MobileBarcodeScanningOptions options = null ) : void
scanCallback Action
options ZXing.Mobile.MobileBarcodeScanningOptions
Результат void

StartScanningAsync() публичный Метод

public StartScanningAsync ( Action scanCallback, ZXing.Mobile.MobileBarcodeScanningOptions options = null ) : Task
scanCallback Action
options ZXing.Mobile.MobileBarcodeScanningOptions
Результат Task

StopScanning() публичный Метод

public StopScanning ( ) : void
Результат void

StopScanningAsync() публичный Метод

public StopScanningAsync ( ) : Task
Результат Task

ToggleTorch() публичный Метод

public ToggleTorch ( ) : void
Результат void

Torch() публичный Метод

public Torch ( bool on ) : void
on bool
Результат void

ZXingScannerControl() публичный Метод

public ZXingScannerControl ( ) : System
Результат System