Question about how to show a Camera view and displaying graphics over it

Don

New Member
Licensed User
Longtime User
I could really use some help on the following:
How can i use the view of the camera onscreen and overlay graphics on that view? I would like to make a sort of 'hud' type overlay on the (constant) camera view but when I use the regular drawline feature within the canvas the line is 'blocked out' by the camera view (which i had expected seeing the information about canvas). I know text is possible with a label (with a transparent background) but I would really like to do more advanced things with the camera view.
btw I've been using basic4android for a few days now and I really, really like it!
 

Don

New Member
Licensed User
Longtime User
Great idea (why didnt I think of that..) but unfortunately that didnt do the trick. I made one panel for the camera and one for the graphics (which was on top) but the graphics were still blocked out by the camera. Thanks for the idea though!
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
I've just tried this solution and it seems to work fine.
See the red line in this screenshot:
SS-2011-08-07_10.32.10.png
 
Upvote 0

Don

New Member
Licensed User
Longtime User
Thanks fir the help Erel and Admac231,
I guess i've made a mistake somewhere in my code. When i quickly program a new camera and overlay a panel with graphics it also works for me; time to get debugging! Nice how things are so easy to accomplish with basic4android.

update: There seemed to be something wrong with my hud panel in designer. It appeared to be placed 'in' the other panel. When i moved the 'hud panel' the part outside the 'camera panel' disappeared. I removed the panel and made a new one and now everything works! Thanks again :)
 
Last edited:
Upvote 0

mkvidyashankar

Active Member
Licensed User
Longtime User
I tried this example and it is working. but i want to save the line over the image. Not getting any idea ....pl help
 
Upvote 0
Top