IT Community - Software Programming, Web Development and Technical Support

I cant able to set the resolution of the CameraCaptureDialog in 1024*1024 ? Guid Me !

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 ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Development > Mobile Software Development

Register FAQ Members List Calendar Mark Forums Read
  #1  
Old 07-25-2007, 12:08 AM
theone theone is offline
D-Web Sr.Programmer
 
Join Date: Jun 2007
Posts: 129
theone is on a distinguished road
Question I cant able to set the resolution of the CameraCaptureDialog in 1024*1024 ? Guid Me !

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);
}
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 07-25-2007, 12:10 AM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 881
kingmaker is on a distinguished road
Send a message via MSN to kingmaker
Default Re: I cant able to set the resolution of the CameraCaptureDialog in 1024*1024 ? Guid

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.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LAN Name Resolution different from Internet arjkhanna Networking & Internet Connectivity 6 06-25-2009 08:50 PM
How can I find the screen size/resolution? kingmaker HTML, CSS and Javascript Coding Techniques 0 10-26-2007 06:06 AM
Can I get the screen resolution and like with php itbarota PHP Programming 1 09-18-2007 07:36 AM
Screen Resolution ewriter Web Design Help 6 05-01-2007 05:29 AM


All times are GMT -7. The time now is 12:30 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.
Our Partners
One Way Moving Companies | Stamford Dentist | Euro Millions Lottery | Home Loans| Furniture

SEO by vBSEO 3.0.0