Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Strings - drawing ideas

 
Kris Sobczak
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is this a functionality you can get from J2ME Polish?

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic