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

Java Development

Reply
Contributor
Posts: 34
Registered: ‎10-03-2012
My Device: 9300
My Carrier: cell c
Accepted Solution

graphics

Hello

Can anyone plz help me with basic graphics. Eg( drawing circle, square, line etc). Can u also prescribe any good study material. Thank you in advance.
Developer
Posts: 16,791
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: graphics

you use the methods of http://www.blackberry.com/developers/docs/7.1.0api/net/rim/device/api/ui/Graphics.html
a simple way to get a graphcis object is to either overwrite paint on a field/screen or calling create on a previously initialized bitmap.

to draw a line you could usw drawLine, for example drawLine(1,1,10,1) would draw a line from position 1/1 to 10/1

you can search for the method name of more advanced methods to find sample usescases, like drawTexturedPath
----------------------------------------------------------
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