(final Image img)
| 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; |
no test coverage detected