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

Java Development

New Developer
Posts: 10
Registered: ‎03-16-2009
My Device: Not Specified

placing label within an image

Hello all,


Can someone please guide me in the appropriate direction.


I've placed a bitmap image in my application to serve as a canvas


Bitmap img = Bitmap.getBitmapResource("card_320_240.png");

and now my objective is to place labels within (on top) that image.  The labels should be a phone number that will dial if the end user selects it.



Thank you very much for your help.

Posts: 1,041
Registered: ‎07-16-2008
My Device: ಠ_ಠ

Re: placing label within an image

You can create a new Graphics object using new Graphics(Bitmap), and then do your text drawing directly to the new Graphics.
Posts: 17,025
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: placing label within an image

seems to come up once every day.
may the search be strong with you
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter