Posted By

marouanomezzine on 08/19/08


Tagged

dpi pixel ruby pixels covert centimeters centimeter coverter


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

webstic


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.