From a4e69f7eec8ff53acb2b14bd9e98e7b88424929f Mon Sep 17 00:00:00 2001 From: Owain van Brakel Date: Thu, 3 Oct 2019 06:22:52 +0200 Subject: [PATCH] imageutil: Checkstyle --- .../main/java/net/runelite/client/util/ImageUtil.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/runelite-client/src/main/java/net/runelite/client/util/ImageUtil.java b/runelite-client/src/main/java/net/runelite/client/util/ImageUtil.java index f3e15a96cf..62561f6cec 100644 --- a/runelite-client/src/main/java/net/runelite/client/util/ImageUtil.java +++ b/runelite-client/src/main/java/net/runelite/client/util/ImageUtil.java @@ -441,13 +441,16 @@ public class ImageUtil return recoloredImage; } - public static BufferedImage recolorImage(BufferedImage image, final Color color) { + public static BufferedImage recolorImage(BufferedImage image, final Color color) + { int width = image.getWidth(); int height = image.getHeight(); WritableRaster raster = image.getRaster(); - for (int xx = 0; xx < width; xx++) { - for (int yy = 0; yy < height; yy++) { + for (int xx = 0; xx < width; xx++) + { + for (int yy = 0; yy < height; yy++) + { int[] pixels = raster.getPixel(xx, yy, (int[]) null); pixels[0] = color.getRed(); pixels[1] = color.getGreen();