I am developing a note taking application. I want a user to write anything on canvas with InkManager of "Windows.UI.Input.Inking". Then I want to display it as text onto canvas and then I want to save those recognized text in either text or image format.
I have checked MSDN documentation, but still I am confused how to start. How can I get ink strokes onto canvas and how can I recognize that ? Please anyone can guide me ? I need it ASAP for my app.
I have tried this code, but it didn't work.
private async void Recognize_Click(object sender, RoutedEventArgs e)
{
IReadOnlyList<InkRecognitionResult> x = await _inkManager.RecognizeAsync(InkRecognitionTarget.All);
IReadOnlyList<String> text;
foreach (InkRecognitionResult i in x)
{
text = i.GetTextCandidates();
res.Text = text.First();
}
}