Gaia/TipsTricks: Difference between revisions

Jump to navigation Jump to search
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:   NEED to multiply with the device pixel ratio.
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 it.  
However, to draw things (lines, arcs, ...) pixel-by-pixel, we would need to multiply the device pixel ratio.


=== Building Tools ===
=== Building Tools ===
Confirmed users
346

edits

Navigation menu