MCPcopy Create free account
hub / github.com/JetBrains/skija / advance

Method advance

examples/scenes/src/BitmapImageScene.java:23–32  ·  view source on GitHub ↗
(Canvas canvas, int width)

Source from the content-addressed store, hash-verified

21 }
22
23 public void advance(Canvas canvas, int width) {
24 canvas.restore();
25 x += 220;
26 if (x + 220 >= width) {
27 x = 20;
28 y += 240;
29 }
30 canvas.save();
31 canvas.translate(x, y);
32 }
33
34 @Override
35 public void draw(Canvas canvas, int width, int height, float dpi, int xpos, int ypos) {

Callers 1

drawMethod · 0.95

Calls 3

restoreMethod · 0.80
saveMethod · 0.80
translateMethod · 0.45

Tested by

no test coverage detected