imageutil: Checkstyle

This commit is contained in:
Owain van Brakel
2019-10-03 06:22:52 +02:00
parent c82d2c8c0f
commit a4e69f7eec

View File

@@ -441,13 +441,16 @@ public class ImageUtil
return recoloredImage; 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 width = image.getWidth();
int height = image.getHeight(); int height = image.getHeight();
WritableRaster raster = image.getRaster(); WritableRaster raster = image.getRaster();
for (int xx = 0; xx < width; xx++) { for (int xx = 0; xx < width; xx++)
for (int yy = 0; yy < height; yy++) { {
for (int yy = 0; yy < height; yy++)
{
int[] pixels = raster.getPixel(xx, yy, (int[]) null); int[] pixels = raster.getPixel(xx, yy, (int[]) null);
pixels[0] = color.getRed(); pixels[0] = color.getRed();
pixels[1] = color.getGreen(); pixels[1] = color.getGreen();