MCPcopy Create free account
hub / github.com/dumbledore/AlbiteREADER / renderRotate

Method renderRotate

src/org/albite/albite/PageCanvas.java:99–109  ·  view source on GitHub ↗
(final Image img)

Source from the content-addressed store, hash-verified

97 }
98
99 private void renderRotate(final Image img) {
100 /*
101 * Rotate, if necessary
102 */
103 if (orientation != BookCanvas.ORIENTATION_0) {
104 final Graphics gx = canvas.getGraphics();
105 gx.drawRegion(img, 0, 0, img.getWidth(), img.getHeight(),
106 orientation, 0, 0,
107 Graphics.LEFT | Graphics.TOP);
108 }
109 }
110
111 public final Image getImage() {
112 return canvas;

Callers 2

renderPageMethod · 0.95
renderPageSelectedMethod · 0.95

Calls 2

getWidthMethod · 0.45
getHeightMethod · 0.45

Tested by

no test coverage detected