Tool for showing multi images together. @param avatar @param width @param height @param n
(Avatar avatar,int width, int height, int n)
| 121 | * @param n |
| 122 | */ |
| 123 | public static void multiImageExhibitor(Avatar avatar,int width, int height, int n) { |
| 124 | BufferedImage image = new BufferedImage(n * width, height, BufferedImage.TYPE_INT_RGB); |
| 125 | Graphics2D g = image.createGraphics(); |
| 126 | |
| 127 | for(int i = 0; i < n; i++) { |
| 128 | g.drawImage(avatar.generateAndGetAvatar(), i * width, 0, width, height, null); |
| 129 | } |
| 130 | |
| 131 | g.dispose(); |
| 132 | ImageExhibitor.showImage(image); |
| 133 | } |
| 134 | } |
no test coverage detected