ScriptInterface:DocToPixel(doc)

Version added: before 9.5

Arguments:

Name Type Description Default Ver
doc real A distance in document coordinates < 9.5

Return value:

real the equivalent distance in pixels
When the user specifies things like line width, blur radius, and shadow offset in Moho, they enter a value in pixels. However, behind the scenes, these values are stored in "document coordinates". This allows an animation to be rendered at different resolutions while still looking correct. This function will convert between document coordinates and pixels.
<< Back to ScriptInterface