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
Highlighted
New Developer
Posts: 44
Registered: ‎02-02-2010
My Device: 8320
My Carrier: t-mobile
Accepted Solution

How to rotate a text string?

The Font class talks about rotation matrices, but I have no idea what those few paragraphs mean or how to apply them. I do understand the mathematics of using a matrix to rotate or translate a set of pixels. I looked at the references Adobe document and I still don't see how it applies to the Font class.

 

I would like to take some simple strings and rotate them so the baseline of the text is running at different angles on the screen. How can I do that?

 

Thanks!

 

Mark

Developer
Posts: 4,764
Registered: ‎07-21-2008
My Device: Not Specified

Re: How to rotate a text string?

[ Edited ]

Take a look at this post and see if you can get some help from it.

 

http://supportforums.blackberry.com/t5/Java-Development/Draw-text-in-a-circular-path/m-p/386884#M743...

 

 

New Developer
Posts: 44
Registered: ‎02-02-2010
My Device: 8320
My Carrier: t-mobile

Re: How to rotate a text string?

Thanks....that worked well!

 

Mark