Skip to content

Commit

Permalink
Push image up 10 pixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
EazyFTW committed Oct 2, 2020
1 parent 23e412d commit a36a34c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/me/TechsCode/TechDiscordBot/util/Plugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ public File getBannerAsFile() {

BufferedImage bufferedImage = new BufferedImage(960, 540, BufferedImage.TYPE_INT_ARGB);
Graphics2D bGr = bufferedImage.createGraphics();
bGr.drawImage(scaled, 0, (int) Math.round(540 - dim.getHeight()), null);

int yOffset = 10; // Moving it up 10 pixels
bGr.drawImage(scaled, 0, (int) Math.round(540 - dim.getHeight() - yOffset), null);
bGr.dispose();

File file = new File(getRoleName().toLowerCase() + "_banner.png");
Expand Down

0 comments on commit a36a34c

Please sign in to comment.