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: 41
Registered: ‎04-24-2012
My Device: storm

Drawing custom paths in blackberry java

Hi im trying to port a app in blackberry java the problem is that Im trying to draw custom paths. In our implemntation in andriod and gtk theres a method called arcTo that arcs the line that you are drawing. I tried to use the drawFilledPath(int[] xPts, int[] yPts, byte[] pointTypes, int[] offsets) in the graphics class but I dont think that you can arc a line using x and y only without a angle. Is there anyway to do this? Tnx in advance for your advice

Developer
Posts: 16,495
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: Drawing custom paths in blackberry java

you are limited to the methods of the graphics class - otherwise you'll have to implement it manually using one of the low level draw methods in there.
----------------------------------------------------------
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