Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Convert mm to Pixels and vice versa  RSS feed

Robert Ploch
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I`m coding a little Tool, for a manufacturer of glasses, which draws some specific points calculated by the parameters given.
These parameters are in millimeter-format, parsed to double-values. All calculations are done in mm.
Now i want to draw a preview using these calculations onto a canvas-screen (800*550).
What is now the best method to convert these double`s to coordinates?
The preview doesn`t need to be exact, but i also want to print these graphics, and therefore the values MUST be exact.
Thanks for ideas
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!