aspose file tools*
The moose likes Java Micro Edition and the fly likes Strings - drawing ideas Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Strings - drawing ideas" Watch "Strings - drawing ideas" New topic
Author

Strings - drawing ideas

Kris Sobczak
Greenhorn

Joined: Jun 04, 2005
Posts: 4
I wonder how would you bite an issue of writing, or rather drawing, scalable words at any angle (don't mean italic, but e.g. from left-upper corner of the screen to right-bottom) in MIDP 1.0?

The easy way - is to draw each char at appropriate position along the line connecting those corners, but such "stairs" happen to be not very readable and their scalability is limited (just default font sizes)

The logical way - is to prepare separate routine for each letter - drawing it as vector shape. Coordinates of all those shapes' nodes are modified by 2 factors: position along the line and rotation to the desired angle - the effect would be satisfying, but I guess this method seem to be very slow if there are many words at different angles displayed at the same moment.

Any other ideas or optimizations?
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17257
    
    6

Is this a functionality you can get from J2ME Polish?

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Strings - drawing ideas