ScriptInterface:DocToPixel(doc)

Version added: before 9.5

When the user specifies things like line width, blur radius, and shadow offset in Moho, they enter a value in pixels

ArgumentTypeDescriptionDefaultVer
docrealA distance in document coordinates< 9.5

Return type (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.