Fabien
Tue May 22 07:19:25 CDT 2007
Hi,
Ok, yes, but according to my mind, I think you can't with the camera
API, I have had the same problem and did this manually...
BR
Fabien Decret
Windows Embedded Consultant
ADENEO (ADESET)
http://www.adeneo.adetelgroup.com/|http://
fabdecret.blogspot.com/
On 22 mai, 12:53, darylhu...@googlemail.com wrote:
> On 21 May, 21:05, Fabien <fab_00_2...@msn.com> wrote:
>
>
>
>
>
> > Hi,
>
> > You can use the "CameraCaptureDialog " :
> > CameraCaptureDialog myCam =3D new CameraCaptureDialog();
> > myCam.Mode =3D CameraCaptureMode.Still;
> > myCam.Resolution =3D new Size(160, 120); // CHoose the resolution you
> > want
> > myCam.StillQuality =3D CameraCaptureStillQuality.Low;
> > myCam.ShowDialog();
>
> > BR
>
> > Fabien Decret
> > Windows Embedded Consultant
>
> > ADENEO (ADESET)
http://www.adeneo.adetelgroup.com/|http://fabdecret.blog=
spot.com/
>
> > On 21 mai, 17:11, darylhu...@googlemail.com wrote:
>
> > > I'm developing some software on a series of devices including an O2
> > > XDA Exec, Palm Treo 750 and an HP iPaq hw6915. All of these devices
> > > have a built in camera with different resolutions.
> > > My question is are there any APIs (with examples) that let you query
> > > the resolution of the camera? I've seen reference to Microsoft Windows
> > > Image Aquisition (WIA) constants but cannot find any example code that
> > > uses these.
> > > Alternatively if I knew that the aspect ratio of all WM 5.0 mobile
> > > device camera's is always fixed at 1.3333 then this would also help
> > > e.g. 640x480 yields 1.3333, 1280x1024 yields 1.3333 etc. but I suppose
> > > this is purely down to the hardware chosen by the manufacturer or is
> > > it defined anywhere by Microsoft?- Hide quoted text -
>
> > - Show quoted text -
>
> Fabien,
>
> Thanks for your response.
>
> I was more interested in whether you could query beforehand the
> resolution(s) that the camera supports, my understanding is that the
> low level camera hardware will support a single fixed resolution e.g.
> 1280x1024 and that Windows Mobile scales the image afterwards
> according to the size specified in CameraCaptureDialog.Resolution. In
> my application I basically have a blank picturebox which I want to
> size correctly according to the camera's aspect ratio BEFORE a photo
> is taken so that the resultant image fits correctly albeit potentially
> scaled down. I could resize the picturebox once the photo has been
> taken and I know the dimensions of the actual image but this makes my
> application a little ugly and involves potential movement of other
> controls below the picturebox on the same form.
> It would just be nice to call an API that returns the camera's max
> resolution e.g. 1280x1024 (with an aspect ratio of 1280/1024=3D1.3333)
> and then size my picturebox accordingly e.g. 200x
> 150 where 150 is (200 / (1280/1024)).
>
> Daryl.- Masquer le texte des messages pr=E9c=E9dents -
>
> - Afficher le texte des messages pr=E9c=E9dents -