From 23e412dc867e3380f9f841a6a3e4d5e0627b576c Mon Sep 17 00:00:00 2001 From: EazyFTW Date: Fri, 2 Oct 2020 13:25:37 -0500 Subject: [PATCH] Pushed image down. --- src/main/java/me/TechsCode/TechDiscordBot/util/Plugin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/TechsCode/TechDiscordBot/util/Plugin.java b/src/main/java/me/TechsCode/TechDiscordBot/util/Plugin.java index 5d72a8cc..d325deb6 100644 --- a/src/main/java/me/TechsCode/TechDiscordBot/util/Plugin.java +++ b/src/main/java/me/TechsCode/TechDiscordBot/util/Plugin.java @@ -104,7 +104,7 @@ public File getBannerAsFile() { BufferedImage bufferedImage = new BufferedImage(960, 540, BufferedImage.TYPE_INT_ARGB); Graphics2D bGr = bufferedImage.createGraphics(); - bGr.drawImage(scaled, 0, 0, null); + bGr.drawImage(scaled, 0, (int) Math.round(540 - dim.getHeight()), null); bGr.dispose(); File file = new File(getRoleName().toLowerCase() + "_banner.png");