MCPcopy Index your code
hub / github.com/afkbrb/github-avatar-generator / multiImageExhibitor

Method multiImageExhibitor

example/Examples.java:123–133  ·  view source on GitHub ↗

Tool for showing multi images together. @param avatar @param width @param height @param n

(Avatar avatar,int width, int height, int n)

Source from the content-addressed store, hash-verified

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}

Callers 2

Calls 2

showImageMethod · 0.95
generateAndGetAvatarMethod · 0.80

Tested by

no test coverage detected