Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Mobile Development
  3. Mobile
  4. Camera

Camera

Scheduled Pinned Locked Moved Mobile
question
7 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • 2 Offline
    2 Offline
    2_Raptor_2
    wrote on last edited by
    #1

    Hi!!! How do i work this camera from WM5

    K J 2 Replies Last reply
    0
    • 2 2_Raptor_2

      Hi!!! How do i work this camera from WM5

      K Offline
      K Offline
      Khatri Mitesh
      wrote on last edited by
      #2

      Hi, Your query is not clear. but i think you want to start your camera. if yes then try this code.

      Dim ccd As New Microsoft.WindowsMobile.Forms.CameraCaptureDialog
      ccd.Resolution = New Size(100, 200)
      ccd.Mode = Microsoft.WindowsMobile.Forms.CameraCaptureMode.Still
      ccd.Mode = CameraCaptureMode.Still
      ccd.Owner = Me
      ccd.Title = "Take a Picture"

         If ccd.ShowDialog() = Windows.Forms.DialogResult.OK Then
              If ccd.FileName <> String.Empty Then
                  PictureBox1.Image = New Bitmap(ccd.FileName)
                  ccd.Dispose()
              End If
          End If
      

      May be it helps you. Thanks

      ~Khatri Mitesh khatrimitesh@hotmail.com Bikaner (Rajasthan) INDIA http://www.youtube.com/watch?v=-oJaaPCrk3Q

      1 Reply Last reply
      0
      • 2 2_Raptor_2

        Hi!!! How do i work this camera from WM5

        J Offline
        J Offline
        Jabbar_espania
        wrote on last edited by
        #3

        Hi You can easily work with windows mobile camera on your appliacion add reference of microsoft using Microsoft.WindowsMobile.Forms; CameraCaptureDialog cc = new CameraCaptureDialog(); cc.Mode = CameraCaptureMode.Still; // if you wanna take still photos cc.StillQuality = CameraCaptureStillQuality.High; put file name as you want to save. If you need more help reply here Good luck

        2 1 Reply Last reply
        0
        • J Jabbar_espania

          Hi You can easily work with windows mobile camera on your appliacion add reference of microsoft using Microsoft.WindowsMobile.Forms; CameraCaptureDialog cc = new CameraCaptureDialog(); cc.Mode = CameraCaptureMode.Still; // if you wanna take still photos cc.StillQuality = CameraCaptureStillQuality.High; put file name as you want to save. If you need more help reply here Good luck

          2 Offline
          2 Offline
          2_Raptor_2
          wrote on last edited by
          #4

          Thanks! This is code in my simple project private void menuItem1_Click(object sender, EventArgs e) { CameraCaptureDialog ccd = new CameraCaptureDialog(); ccd.Resolution = new Size(100, 200); ccd.Mode = CameraCaptureMode.Still; ccd.Owner = this; ccd.Title = "My Camera"; if(ccd.ShowDialog() == DialogResult.OK) if( ccd.FileName != String.Empty) pictureBox1.Image = new Bitmap(ccd.FileName); ccd.Dispose(); } it's Ok.. for debug i using device USA Windows Mobile 5.0 Pocket PC R2 Emulator from VS 2008 but this emulator not camera device... how to add camera?

          J K 2 Replies Last reply
          0
          • 2 2_Raptor_2

            Thanks! This is code in my simple project private void menuItem1_Click(object sender, EventArgs e) { CameraCaptureDialog ccd = new CameraCaptureDialog(); ccd.Resolution = new Size(100, 200); ccd.Mode = CameraCaptureMode.Still; ccd.Owner = this; ccd.Title = "My Camera"; if(ccd.ShowDialog() == DialogResult.OK) if( ccd.FileName != String.Empty) pictureBox1.Image = new Bitmap(ccd.FileName); ccd.Dispose(); } it's Ok.. for debug i using device USA Windows Mobile 5.0 Pocket PC R2 Emulator from VS 2008 but this emulator not camera device... how to add camera?

            J Offline
            J Offline
            Jabbar_espania
            wrote on last edited by
            #5

            on which operating system you are compiling this project ? You can compile in VS2008 and save the exe in your mobile divice and can run from there put one botton on your Form which will active your camera on mobile device and later can see that on My documents on mobile devie . Hope it helps cc.DefaultFileName = "Picture .jpg"; cc.InitialDirectory = "\\";

            1 Reply Last reply
            0
            • 2 2_Raptor_2

              Thanks! This is code in my simple project private void menuItem1_Click(object sender, EventArgs e) { CameraCaptureDialog ccd = new CameraCaptureDialog(); ccd.Resolution = new Size(100, 200); ccd.Mode = CameraCaptureMode.Still; ccd.Owner = this; ccd.Title = "My Camera"; if(ccd.ShowDialog() == DialogResult.OK) if( ccd.FileName != String.Empty) pictureBox1.Image = new Bitmap(ccd.FileName); ccd.Dispose(); } it's Ok.. for debug i using device USA Windows Mobile 5.0 Pocket PC R2 Emulator from VS 2008 but this emulator not camera device... how to add camera?

              K Offline
              K Offline
              Khatri Mitesh
              wrote on last edited by
              #6

              Hi Windows Mobile 5.0 Pocket PC Emulator does not provide the camera facility on the emulator. For debug your project on the Emulator you can use the Windows Mobile 6.0 Pocket PC Emulator. May it solves your problem. Thanks

              ~Khatri Mitesh khatrimitesh@hotmail.com Bikaner (Rajasthan) INDIA http://www.youtube.com/watch?v=-oJaaPCrk3Q

              2 1 Reply Last reply
              0
              • K Khatri Mitesh

                Hi Windows Mobile 5.0 Pocket PC Emulator does not provide the camera facility on the emulator. For debug your project on the Emulator you can use the Windows Mobile 6.0 Pocket PC Emulator. May it solves your problem. Thanks

                ~Khatri Mitesh khatrimitesh@hotmail.com Bikaner (Rajasthan) INDIA http://www.youtube.com/watch?v=-oJaaPCrk3Q

                2 Offline
                2 Offline
                2_Raptor_2
                wrote on last edited by
                #7

                Thanks

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups