×
Namespaces

Variants
Actions

How to set the resolution of a camera snapshot

From Nokia Developer Wiki
Jump to: navigation, search

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

Article Metadata
Article
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]
index:
0 - 640x480
1 - 1280x960
2 - 1632x1224
3 - 2000x1500
4 - 2048x1536
*/

 
// Set the resolution as shown
cameraControl = (CameraControl)player.getControl("CameraControl");
cameraControl.setStillResolution(1);
This page was last modified on 29 July 2013, at 11:01.
91 page views in the last 30 days.
×