Created
August 3, 2011 04:21
-
-
Save mbmccormick/1121897 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public MainPage() | |
{ | |
InitializeComponent(); | |
CameraCaptureTask cct = new CameraCaptureTask(); // initalize task | |
cct.Completed += new System.EventHandler<PhotoResult>(this.PhotoChooserCompleted); // wire up the event | |
cct.Show(); // launch camera | |
} | |
private void PhotoChooserCompleted(object sender, PhotoResult e) | |
{ | |
this.showInProgress = false; | |
if (e.TaskResult == TaskResult.OK) // if capture completed | |
{ | |
this.StartOcrConversion(e.ChosenPhoto); // launch OCR service | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment