Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries. Thanks for all your past and future contributions.
How to set the resolution of a camera snapshot
This article shows how to get the supported camera resolutions and set the desired resolution.
//List the supported resolutions using:
int supportedRes = cameraControl.getSupportedStillResolutions();
/* the list will be like this and you have to take the index of this as shown
[480, 640, 960, 1280, 1224, 1632, 1500, 2000, 1536, 2048]
0 - 640x480
1 - 1280x960
2 - 1632x1224
3 - 2000x1500
4 - 2048x1536
// Set the resolution as shown
cameraControl = (CameraControl)player.getControl("CameraControl");