Appearance
Function: emuToPixels() ​
emuToPixels(
emu,dpi):number
EMU → whole pixels at a stated DPI.
Published for consumers, and used nowhere in src/ on purpose. Nothing inside the library thinks in pixels: it is the unit a caller placing library output on a canvas or in a <img> needs, and the DPI is theirs to choose. Left exported deliberately rather than by oversight — this note is the difference between the two.
Parameters ​
| Parameter | Type |
|---|---|
emu | number |
dpi | number |
Returns ​
number