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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Developer
Posts: 132
Registered: ‎11-06-2012
My Device: BlackBerry Passport
Accepted Solution

How to make front camera view in full screen.

when i open front camera by qml code and startviewfinder, the screen is not full just like the photobomer example. Anybody know how to fix it? Thanks.

 

Retired
Posts: 17
Registered: ‎11-27-2012
My Device: Bold 9900
My Carrier: VodaFone UK

Re: How to make front camera view in full screen.

Let me look into this and I will get back to you shortly.

BlackBerry Development Advisor
Posts: 683
Registered: ‎11-29-2011
My Device: PRIV
My Carrier: Rogers

Re: How to make front camera view in full screen.

There is already at least one thread on this subject in the Cascades forum...

http://supportforums.blackberry.com/t5/Cascades-Development/set-aspect-ratio-for-the-Camera-custom-c...

 

Feel free to provide screenshots of what you want to be able to see vs what you are seeing right now that is unsatisfactory.

 

Cheers,

Sean

Retired
Posts: 17
Registered: ‎11-27-2012
My Device: Bold 9900
My Carrier: VodaFone UK

Re: How to make front camera view in full screen.

One of the suggestions put forward by Don is:

To display a full screen preview for the camera you will need to change the camera capture resolution to one which has an aspect ratio of 16:9. By default the camera's capture resolution is 4:3, hence the black bars at the top and bottom of the screen in the photobomber app.

Here's an example of how to do this from the forums:

http://supportforums.blackberry.com/t5/Cascades-Development/set-aspect-ratio-for-the-Camera-custom-c...

The example is in C++ but it would be quite easy to do this in QML, by getting and setting the capture resolution the onOpened signal from the camera.

Does this help ?
Highlighted
Developer
Posts: 132
Registered: ‎11-06-2012
My Device: BlackBerry Passport

Re: How to make front camera view in full screen.

Great, It works like charm. Thanks very much Smiley Happy