This is a discussion on I cant able to set the resolution of the CameraCaptureDialog in 1024*1024 ? Guid Me ! within the Mobile Software Development forums, part of the Software Development category; The followign code does not successfully take igh resolution (1280x1024) photos on an HW6965 (HW69xx) device. The code does work ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| The followign code does not successfully take igh resolution (1280x1024) photos on an HW6965 (HW69xx) device. The code does work successfully with an iMATE JASJAR. The requirement is to take full resolution photos. The device supports resolutions of 1280x1024, 640x480 , 320x240, 160x120 in the HP Photosmart software. Any assistance or suggestions appreciated. CameraCaptureDialog dlg = new CameraCaptureDialog(); dlg.InitialDirectory = "/Storage card"; dlg.DefaultFileName = "file" + DateTime.Now.ToString("HHmmss") + ".jpg"; dlg.Mode = CameraCaptureMode.Still; dlg.Resolution = new Size(1280, 1024); dlg.StillQuality = CameraCaptureStillQuality.High; dlg.Title = "Camera Capture"; dlg.ShowDialog(); string picTaken = dlg.FileName; if (picTaken != string.Empty) { int i = dlg.Resolution.Width; pictureBox1.Image = new Bitmap(picTaken); } |
| Sponsored Links |
| |||
| You might want to try a slightly different resolution than what the device advertises itself as. It seems that sometimes the camera will provide an output resolution that is different than its internal resolution. As an example, the HTC Prophet claims to have a 2MP camera with a resolution of 1600x1200. However, internally it seems to use 1600x1280, and when using the CameraCaptureDialog, you must use 1600x1280; otherwise your setting will be ignored. My guess is that the sensor works at 1600x1280, and the camera hardware or software trims off the extra pixels. In any event, for an advertised resolution of 1280x1024, you might want to experiment a bit - perhaps 1280x960 will work. |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How can I find the screen size/resolution? | kingmaker | HTML, CSS and Javascript Coding Techniques | 0 | 10-26-2007 07:06 AM |
| Can I get the screen resolution and like with php | itbarota | PHP Programming | 1 | 09-18-2007 08:36 AM |
| Screen Resolution | ewriter | Web Design Help | 6 | 05-01-2007 06:29 AM |