I am working on a Arcgis Mobile application on Windows Mobile platform for my client.
I am trying to use the camera of the Device to take pictures and attach them to a feature. But i want to take the picture from inside a Task Application programmaticaly by using the ESRI.ArcGIS.Mobile.Client.WebCam library.
I am using WPF and all my pages are made as an MobileApplicationPage.
How can i use this library?
What i have tried till now is to get my camera properties through the available cameras:
foreach (Camera value in CameraService.AvailableCameras)
{
value.CaptureHeight = 480;
value.CaptureWidth = 640;
value.Fps = 24;
string camera_name = value.Name;
}
and afterwards create a camera source for this camera:
CameraFrameSource camsource = new CameraFrameSource(value);
after this steps i tried to use the camsource.Camera.GetCurrentImage();
but in vain, it didn't work it returns null, although my camera light turn's on.
What am i doing wrong?
Is there a different approach?