cdCanvasPixel2MM

Definition: include pGUI.e

atom {mm_dx, mm_dy} = cdCanvasPixel2MM(cdCanvas hCdCanvas, atom dx, dy)
Description: Converts sizes in pixels (canvas coordinates) into millimeters.
Comments: Use this function to obtain the horizontal and vertical resolution of the canvas by passing 1 as parameter in dx and dy.
The resolution value is obtained using the formula res=1.0/mm.

Since the pGUI wrapper function can accept integers and floats in the parameters, and return atoms or integers, there is no need for a separate cdfCanvasPixel2MM wrapper. Internally it only uses the cdfCanvasPixel2MM C function.