Posted By

marouanomezzine on 08/19/08


dpi pixel ruby pixels covert centimeters centimeter coverter

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


Covert Pixels to Centimeters

 / Published in: Ruby

  1. def convert_pixels_to_cms(pixels, dpi)
  2. return (pixels / dpi) * 2.54
  3. end

Report this snippet  

You need to login to post a comment.