C# Class WritePadSDK_WPFSample.MainWindow

Afficher le fichier Open project: phatware/WritePadSDK

Méthodes publiques

Méthode 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

Méthode 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 méthode

public AddStroke ( System.Windows.Shapes.Polyline currentStroke ) : void
currentStroke System.Windows.Shapes.Polyline
Résultat void

DictionaryChanged() public méthode

public DictionaryChanged ( ) : void
Résultat void

Distance() public static méthode

public static Distance ( double x1, double y1, double x2, double y2 ) : double
x1 double
y1 double
x2 double
y2 double
Résultat double

FinishStrokeDraw() public méthode

public FinishStrokeDraw ( ) : void
Résultat void

MainWindow() public méthode

public MainWindow ( ) : System
Résultat System

RecognizeStrokes() public méthode

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
Résultat string