Camera
-
Hi!!! How do i work this camera from WM5
-
Hi!!! How do i work this camera from WM5
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
-
Hi!!! How do i work this camera from WM5
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
-
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
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?
-
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?
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 = "\\";
-
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?
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
-
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
Thanks