Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Convert mm to Pixels and vice versa

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
I'm not dead! I feel happy! I'd like to go for a walk! I'll even read a tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!