wp782fa982.png
wp135453fd.png
wp76c8536c.png

< float > = PRINTER PIXELS IN LENGTH X(length, units) <float, integer >

< float > = PRINTER PIXELS IN LENGTH Y(length,units) <float, integer >

This function returns an irrational number of pixels in a given length specified by units. The result is returned as a floating point number

Units

Ordinal

Inches

0

Millimetres

1

Centimetres

2

Meters

3

Points

4

Note it is necessary to return the number of pixels as an irrational number, meaning that the function can return a whole, and a fractional number of pixels. This is so that you can decide how to round this value to a whole number of pixels in subsequent drawing operations.