C# Class WritePadSDK_WPFSample.MainWindow

Exibir arquivo Open project: phatware/WritePadSDK

Public Methods

Method Description
AddStroke ( System.Windows.Shapes.Polyline currentStroke ) : void
DictionaryChanged ( ) : void
Distance ( double x1, double y1, double x2, double y2 ) : double
FinishStrokeDraw ( ) : void
MainWindow ( ) : System
RecognizeStrokes ( List strokes, bool bLearn ) : string

n Recognizes a collection of Polyline objects into text. Words are recognized with alternatives, eash weighted with probability.

Private Methods

Method Description
AddPixelToStroke ( ) : void
ClearAllClick ( object sender, RoutedEventArgs e ) : void
ClearInk ( ) : void
DrawGrid ( ) : void
InkCanvas_OnMouseLeave ( object sender, System.Windows.Input.MouseEventArgs e ) : void
LanguagesCombo_OnSelectionChanged ( object sender, System.Windows.Controls.SelectionChangedEventArgs e ) : void
MainWindow_OnClosing ( object sender, CancelEventArgs e ) : void
MainWindow_OnLoaded ( object sender, RoutedEventArgs e ) : void
OnCanvasPointerMoved ( object sender, System.Windows.Input.MouseEventArgs e ) : void
OnCanvasPointerPressed ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
OnCanvasPointerReleased ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
OptionsClick ( object sender, RoutedEventArgs e ) : void
PointerReleased ( ) : void
RecognizeAllClick ( object sender, RoutedEventArgs e ) : void
StartAddingStroke ( Point pt ) : void
UpdateSelectedLanguage ( WritePadAPI langId ) : void

Method Details

AddStroke() public method

public AddStroke ( System.Windows.Shapes.Polyline currentStroke ) : void
currentStroke System.Windows.Shapes.Polyline
return void

DictionaryChanged() public method

public DictionaryChanged ( ) : void
return void

Distance() public static method

public static Distance ( double x1, double y1, double x2, double y2 ) : double
x1 double
y1 double
x2 double
y2 double
return double

FinishStrokeDraw() public method

public FinishStrokeDraw ( ) : void
return void

MainWindow() public method

public MainWindow ( ) : System
return System

RecognizeStrokes() public method

n Recognizes a collection of Polyline objects into text. Words are recognized with alternatives, eash weighted with probability.
public RecognizeStrokes ( List strokes, bool bLearn ) : string
strokes List Strokes to recognize
bLearn bool
return string