locked
Units of 1/96" RRS feed

  • Question

  • Help please. Is there any alternative to using units of 1/96"? If not, what is the standard conversion factor that is used to convert from millimetres?

    Thursday, March 31, 2011 9:19 PM

Answers

  • Hi Dave,

    XPS uses 1/96" and there's no options to change that...

    I used following conversion:

      public static Double ConvertMillimeterToPixel(double mm)
      {
       // Pixel = mm * resolution in DPI / dpi (=25,4mm)
       return (mm * (96 / 25.4));
      }
    

    hope it helps...

    regards
    Jo

    • Marked as answer by Dave Mullard Saturday, April 2, 2011 2:50 AM
    Friday, April 1, 2011 10:58 AM

All replies

  • Hi Dave,

    XPS uses 1/96" and there's no options to change that...

    I used following conversion:

      public static Double ConvertMillimeterToPixel(double mm)
      {
       // Pixel = mm * resolution in DPI / dpi (=25,4mm)
       return (mm * (96 / 25.4));
      }
    

    hope it helps...

    regards
    Jo

    • Marked as answer by Dave Mullard Saturday, April 2, 2011 2:50 AM
    Friday, April 1, 2011 10:58 AM
  • Thanks Jo. Thats what I decided to use.

     

    Cheers,  Dave

    Saturday, April 2, 2011 2:52 AM