protected void cameraTask_Completed(object sender, PhotoResult e) { rho.common.Hashtable <String, String> mapRes = new rho.common.Hashtable <String, String>(); switch (e.TaskResult) { case TaskResult.OK: mapRes["imageUri"] = e.OriginalFileName; mapRes["image_uri"] = e.OriginalFileName; mapRes["status"] = "ok"; break; case TaskResult.None: mapRes["message"] = "Error"; mapRes["status"] = "error"; break; case TaskResult.Cancel: mapRes["message"] = "User cancelled operation"; mapRes["status"] = "cancel"; break; default: break; } _oResult.set(mapRes); //Code to display the photo on the page in an image control named myImage. //System.Windows.Media.Imaging.BitmapImage bmp = new System.Windows.Media.Imaging.BitmapImage(); //bmp.SetSource(e.ChosenPhoto); //myImage.Source = bmp; }
protected void cameraTask_Completed(object sender, PhotoResult e) { rho.common.Hashtable<String, String> mapRes = new rho.common.Hashtable<String, String>(); switch (e.TaskResult) { case TaskResult.OK: mapRes["imageUri"] = e.OriginalFileName; mapRes["image_uri"] = e.OriginalFileName; mapRes["status"] = "ok"; break; case TaskResult.None: mapRes["message"] = "Error"; mapRes["status"] = "error"; break; case TaskResult.Cancel: mapRes["message"] = "User cancelled operation"; mapRes["status"] = "cancel"; break; default: break; } _oResult.set(mapRes); //Code to display the photo on the page in an image control named myImage. //System.Windows.Media.Imaging.BitmapImage bmp = new System.Windows.Media.Imaging.BitmapImage(); //bmp.SetSource(e.ChosenPhoto); //myImage.Source = bmp; }