Thursday, July 19, 2007

Camera API for Windows Mobile

While is it sometimes a little difficult to find information on the Windows Mobile Camera API, there are several references. The CameraCaptureDialog is probably the key thing to look for, and also the CameraPresent attribute:

http://blogs.msdn.com/vsdteam/archive/2005/06/29/433961.aspx

http://msdn2.microsoft.com/en-us/library/microsoft.windowsmobile.forms.cameracapturedialog_members.aspx

http://www.google.com/search?q=camerapresent&sourceid=ie7&rls=com.microsoft:en-US&ie=utf8&oe=utf8

http://channel9.msdn.com/ShowPost.aspx?PostID=209787

7 comments:

Anonymous said...

that's completely useless and as a set, have never worked on 90% of devices.

srego said...

I think Anonymous should try the Windows Mobile camera API again. I have used it on many devides with great success. I have found that if the device has a camera built in, it will usually work with no problem. I have tried to use a FlyCam CF with a Dell Axim with no success, but this is because FlyCam doesn't support the Windows Mobile Camera API.

Anonymous said...

hello, do you know if is posible to capture the shot when you are taking a phograph?

srego said...

You can load the captured image into a Bitmap and then put it in a PictureBox:

Dim photo As New Bitmap(photoFilename)

PictureBoxPhoto.Image = photo

thirupathy said...

Hi,
we are not able to run barcode and camera at a time. Camera not working if the barcode scanning object initialized in window 6.1. do you have any suggestion to run both process at a time. thanks

srego said...

Thirupath,

I have successfully used a barcode scanner and a camerea on the same device, but it may have a lot to do with the types of each. I had an internal camera with a bluetooth barcode scanner, and a bluetooth GPS. I have also used a Flycam CF slot camera and a barcode scanner, but this particular camera did not support the Camera API anyway, so I was unable to use the Camera API.

Anonymous said...

Just to let you guys now that the API works excellent on a Datalogic Elf Barcode scanner/phone/photo.GPS Mobile 6.5 device.