Confirmed users
346
edits
| Line 134: | Line 134: | ||
Read image which is already high-resolution: NO need to multiply with the device pixel ratio. | Read image which is already high-resolution: NO need to multiply with the device pixel ratio. | ||
Draw something with canvas APIs: | Draw something (lines, arcs, but not images) with canvas APIs: NEED to multiply with the device pixel ratio. | ||
This is because build script would read high-resolution image, so it would fit the screen. | This is because build script would read high-resolution image, so it would fit the screen. | ||
However, to draw things pixel-by-pixel, would need to multiply | However, to draw things (lines, arcs, ...) pixel-by-pixel, we would need to multiply the device pixel ratio. | ||
=== Building Tools === | === Building Tools === | ||