Skip to main content

Pixel to Millimetre


Question / Problem: 

What is the conversion for pixel to millimetre (millimeter)?

Answer / Solution: 

Below is a function that will convert pixel to millimetre:

Private Function PixelToMM(DocumentResolution As Double, Pixel As Double) As Double
   PixelToMM = (25.4 * Pixel) / DocumentResolution
End Function

Applies to:  

Product Version Category
KTM 6.3 Scripting
KTM 6.2 Scripting


  • Was this article helpful?