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
Developer
tanphat1412
Posts: 123
Registered: ‎11-06-2012
My Device: BlackBerry
My Carrier: Mobifone
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.

 

Please use plain text.
BlackBerry Development Advisor (Retired)
ashnazir
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.

Please use plain text.
BlackBerry Development Advisor
smcveigh
Posts: 665
Registered: ‎11-29-2011
My Device: developer
My Carrier: other

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

Please use plain text.
BlackBerry Development Advisor (Retired)
ashnazir
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 ?
Please use plain text.
Developer
tanphat1412
Posts: 123
Registered: ‎11-06-2012
My Device: BlackBerry
My Carrier: Mobifone

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

Great, It works like charm. Thanks very much :smileyhappy:

 

Please use plain text.