locked
Capture Image from a Windows Mobile Pocket Pc RRS feed

  • Question

  • Hi to everybody, How to capture the image from Pocket Pc directly. what nameSpace i have to use.Is there any control to capture the Image... can anybody send the code with details... Thanking you.
    PS.Shakeer Hussain Hyderabad
    Friday, June 11, 2010 10:51 AM

Answers

  • is it windows Mobile pocket PC or older version? if it is windows mobile pocket PC you can use

    SHCameraCapture() API. See the following link.

    http://msdn.microsoft.com/en-us/library/bb160743.aspx

    Good Luck

     


    Vinoth.R http://vinoth-vinothblog.blogspot.com http://www.e-consystems.com
    Friday, June 11, 2010 11:08 AM
  • Hi vinoth,

    For using SHCameraCapture API, we just use one button to take an image. In fact, the API just invoke system camera application and click "Action" key to take image.

    If you really want to use two buttons, you can use directshow to capture image, but it seems more complex than the API. SDK provide a sample:
    C:\Program Files\Windows Mobile 6 SDK\Samples\PocketPC\CPP\win32\CameraCapture

     

    But in my opinion, SHCameraCapture can also capture image, but just using one button. It is easy to use, SDK also provide a sample:

    C:\Program Files\Windows Mobile 6 SDK\Samples\Common\CPP\Win32\CECamera

    Best regards,
    Guang-Ming Bian - MSFT


    Please remember to mark the replies as answers if they help and unmark them if they provide no help
    Tuesday, June 15, 2010 3:17 AM

All replies

  • is it windows Mobile pocket PC or older version? if it is windows mobile pocket PC you can use

    SHCameraCapture() API. See the following link.

    http://msdn.microsoft.com/en-us/library/bb160743.aspx

    Good Luck

     


    Vinoth.R http://vinoth-vinothblog.blogspot.com http://www.e-consystems.com
    Friday, June 11, 2010 11:08 AM
  • There is no capture control but there is an API named (SHCameraCapture() API) that helps you to use capture the image through it. See the msdn link for usage.

    http://msdn.microsoft.com/en-us/library/bb160743.aspx

    Good Luck


    Vinoth.R http://vinoth-vinothblog.blogspot.com http://www.e-consystems.com
    Friday, June 11, 2010 11:32 AM
  • Hi ,

    I am using Pocket PC Wm 5.0

    My requiremant is when i click on show camera the camera stand should come.

    and when i click another buuton as 'Caputer',the iamge should be save.


    PS.Shakeer Hussain Hyderabad
    Friday, June 11, 2010 12:37 PM
  • SHCameraCapture() API will launch the default windows mobile camera application from your application to capture the still image or video and after capturing it will return to your application. Have you gone through the link? You need to fill up the structure SHCAMERACAPTURE with the necessary details.

    if you need a custom GUI for camera application, you have to create your own directshow camera application.

    I hope the first one is simple


    Vinoth.R http://vinoth-vinothblog.blogspot.com http://www.e-consystems.com
    Friday, June 11, 2010 2:54 PM
  • Hi vinoth,

    Thanks for responding..

    and again i have one more question..

    How to show camera in Windows Mobile.That means in my form,i have two button.

    1)for show camera

    2)capture image

    when i click show camera button i want to show camera with in the form itself.I dnt want to  exit my from and show camera....Without exit the form,i want to show camera in some part of my from or some region with two buttons....

    when click capture button the image should capture.

    I know how to capture the image....but i need logic or some part of code to show camera in form itself.


    PS.Shakeer Hussain Hyderabad
    Saturday, June 12, 2010 10:13 AM
  • Hi vinoth,

    For using SHCameraCapture API, we just use one button to take an image. In fact, the API just invoke system camera application and click "Action" key to take image.

    If you really want to use two buttons, you can use directshow to capture image, but it seems more complex than the API. SDK provide a sample:
    C:\Program Files\Windows Mobile 6 SDK\Samples\PocketPC\CPP\win32\CameraCapture

     

    But in my opinion, SHCameraCapture can also capture image, but just using one button. It is easy to use, SDK also provide a sample:

    C:\Program Files\Windows Mobile 6 SDK\Samples\Common\CPP\Win32\CECamera

    Best regards,
    Guang-Ming Bian - MSFT


    Please remember to mark the replies as answers if they help and unmark them if they provide no help
    Tuesday, June 15, 2010 3:17 AM