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

Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.

Regular Contributor
Posts: 69
Registered: ‎04-05-2010
My Device: Storm
My Carrier: BSNL

Re: Drawing Polygons....drawFilledPath

Paths has smallcurves. I was actually trying to draw the text by getting the path from the font. I am getting good text, but its edges & curves are not nice. When I draw the filled path, i feel because of the missing decimals, some of the path filles are not upto the extent.


Consider a font with 10 font size where I am drawing "a". Curves are very small.


I tried converting the points to Fixed Int as mentiuoned above, but some how drawFilledPath() does not resepect the Fixed32 values.


I tried converting the each double point e.g 10.5342 to Fixed int using Fixed32.tenThouToFP((int) 10.5342 * 10000);


I suspect, it is considering the resulting point is just multiplied by 10,000 (105342) instead of taking it as 10.5342 while drawing with this point.

Posts: 1,807
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-, Z10 (STL100-3)-, Z30 (STA100-5)-, Passport (SQW100-1)-, PlayBook (16GB)-
My Carrier: Verizon

Re: Drawing Polygons....drawFilledPath

Yes, all the functions in Graphics expect pixel-aligned values. If you passed in a Fixed32 value it will just see that as a big number.


May I ask how you got the path from the font?

---Spends time in #blackberrydev on freenode (IRC)----
Three simple rules:
1. Please use the search bar before making new posts.
2. "Like" posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.