Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Super Contributor
Posts: 440
Registered: ‎01-13-2011
My Device: Playbook
My Carrier: NA

Camera Settings

Hi,

 

I've had a look at a few sample camera apps and I can't find an example of how to change the camera settings, I've tried this, but no luck, could someone point me in the right direction?

 

camera->open(CameraUnit::Rear);
            camera->startViewfinder();
            CameraSettings * cS = new CameraSettings;
            cS->setFlashMode(1);
            camera->applySettings();

 

--------------------------------------------------------------------------------------------------
BlackBerry Apps: Instruments | ARTPAD | Piano | Drums | Xylophone
New Contributor
Posts: 8
Registered: ‎12-10-2011
My Device: Playbook
My Carrier: 2042997911

Re: Camera Settings

[ Edited ]

Hi,

 

I got it to work by doing the following.

 

camera->open(direction);
camera->startViewfinder();
settings = new CameraSettings();
camera->getSettings(settings);

settings->setZoomLevel(30);
camera->applySettings(settings);

 

Hope that helps!

Retired
Posts: 138
Registered: ‎05-11-2012
My Device: Developer
My Carrier: Developer

Re: Camera Settings

The following post has some useful information on camera samples

 

http://supportforums.blackberry.com/t5/Cascades-Development/Camera-Sample-Code/m-p/1744327/highlight...

 

Hope this helps you progress; please let us know how you get on.

 

Graham

Super Contributor
Posts: 440
Registered: ‎01-13-2011
My Device: Playbook
My Carrier: NA

Re: Camera Settings

[ Edited ]

That post and examples linked in the post have nothing to do with camera flash. I've got the settings working now, just I cant get the flash to stay on.

--------------------------------------------------------------------------------------------------
BlackBerry Apps: Instruments | ARTPAD | Piano | Drums | Xylophone