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
richardkesuma
Posts: 29
Registered: ‎10-19-2012
My Device: Blackberry 10 Limited Edition
Accepted Solution

Draw Text or Images as Background in Camera

Hi All, I want to create an app in BB10 that used camera function,

Can I draw a text or images as background in the camera?  :Phone:

 

Thank you All.,

Best Regards.


Richard Kesuma
Developer
Developer
lew
Posts: 174
Registered: ‎03-05-2009
My Device: Dev Alpha

Re: Draw Text or Images as Background in Camera

i think you meant overlay and not background? connecting with the camera will most probably cover up most of the screen's content....

 

if you meant overlay, check out ForeignControl:

https://developer.blackberry.com/cascades/reference/bb__cascades__foreignwindowcontrol.html

 

and the following samples app: 

HelloVideoCamera

 

you simply need to add content on top of the foreignwindowcontrol 

Developer
richardkesuma
Posts: 29
Registered: ‎10-19-2012
My Device: Blackberry 10 Limited Edition

Re: Draw Text or Images as Background in Camera

Thank You lew :smileyhappy:
Problem solved!
Best Regards.


Richard Kesuma