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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Contributor
lostdragon
Posts: 34
Registered: ‎10-03-2012
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.
Please use plain text.
Developer
simon_hain
Posts: 14,064
Registered: ‎07-29-2008
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
Please use plain text.