How to set resoultion of snapshot taken
Article Metadata
//You can list the supported resolutions by:
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]
index:
0 - 640x480
1 - 1280x960
2 - 1632x1224
3 - 2000x1500
4 - 2048x1536
- /
cameraControl = (CameraControl)player.getControl("CameraControl");
cameraControl.setStillResolution(1);


To set resolution of snapshot melodramatically we have to use cameraControl class's getSupportedstillResolution()method and store its values into one array.We will be having list of integer values that we can access individually to set using setStillResolution()method.
Code example is working properly without any bugs and its is so easy to understand and implement within few minutes.
--kalki 20:48, 26 September 2009 (UTC)