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

From Wiki
Jump to: navigation, search

This article shows how to get the supported camera resolutions and set the desired resolution.

Article Metadata
Created: senthilat (30 Jun 2007)
Last edited: hamishwillee (29 Jul 2013)
//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");
This page was last modified on 29 July 2013, at 08:01.
53 page views in the last 30 days.