MCPcopy Create free account
hub / github.com/ArtifexSoftware/mupdf / rotate

Method rotate

platform/java/example/Viewer.java:701–711  ·  view source on GitHub ↗
(int change)

Source from the content-addressed store, hash-verified

699 }
700
701 protected void rotate(int change) {
702 int newRotate = rotate + change;
703 while (newRotate < 0) newRotate += 360;
704 while (newRotate >= 360) newRotate -= 360;
705
706 if (newRotate - rotate == 0)
707 return;
708 rotate = newRotate;
709
710 render();
711 }
712
713 protected void toggleAntiAlias() {
714 int newAntialias = number != 0 ? number : (antialias == 8 ? 0 : 8);

Callers 3

canvasKeyTypedMethod · 0.95
barcode_createFunction · 0.45
renderMethod · 0.45

Calls 1

renderMethod · 0.95

Tested by

no test coverage detected