test_class.declarator: BLACK_HALF_TRANSPARENT = new Color(0, 0, 0, 128)
test_class.modifier: private static final
test_class.original_string: private static final Color BLACK_HALF_TRANSPARENT = new Color(0, 0, 0, 128);
test_class.type: Color
test_class.var_name: BLACK_HALF_TRANSPARENT
test_class.declarator: BLACK_TRANSPARENT = new Color(0, true)
test_class.modifier: private static final
test_class.original_string: private static final Color BLACK_TRANSPARENT = new Color(0, true);
test_class.type: Color
test_class.var_name: BLACK_TRANSPARENT
test_class.declarator: CORNER_SIZE = 2
test_class.modifier: private static final
test_class.original_string: private static final int CORNER_SIZE = 2;
test_class.type: int
test_class.var_name: CORNER_SIZE
test_class.declarator: CENTERED_SIZE = 3
test_class.modifier: private static final
test_class.original_string: private static final int CENTERED_SIZE = 3;
test_class.type: int
test_class.var_name: CENTERED_SIZE
test_class.declarator: BLACK_PIXEL_TOP_LEFT
test_class.modifier: private static final
test_class.original_string: private static final BufferedImage BLACK_PIXEL_TOP_LEFT;
test_class.type: BufferedImage
test_class.var_name: BLACK_PIXEL_TOP_LEFT
test_class.declarator: BLACK_PIXEL_TOP_RIGHT
test_class.modifier: private static final
test_class.original_string: private static final BufferedImage BLACK_PIXEL_TOP_RIGHT;
test_class.type: BufferedImage
test_class.var_name: BLACK_PIXEL_TOP_RIGHT
test_class.declarator: BLACK_PIXEL_BOTTOM_LEFT
test_class.modifier: private static final
test_class.original_string: private static final BufferedImage BLACK_PIXEL_BOTTOM_LEFT;
test_class.type: BufferedImage
test_class.var_name: BLACK_PIXEL_BOTTOM_LEFT
test_class.declarator: BLACK_PIXEL_BOTTOM_RIGHT
test_class.modifier: private static final
test_class.original_string: private static final BufferedImage BLACK_PIXEL_BOTTOM_RIGHT;
test_class.type: BufferedImage
test_class.var_name: BLACK_PIXEL_BOTTOM_RIGHT
test_class.file: runelite-client/src/test/java/net/runelite/client/util/ImageUtilTest.java
test_class.identifier: ImageUtilTest
test_case.body: @Test
  	public void fillImage()
  	{
  		// fillImage(BufferedImage image, Color color)
  		assertTrue(bufferedImagesEqual(centeredPixel(GRAY), ImageUtil.fillImage(centeredPixel(BLACK), GRAY)));
  		assertTrue(bufferedImagesEqual(solidColor(3, 3, GREEN), ImageUtil.fillImage(solidColor(3, 3, BLACK), GREEN)));
  		assertTrue(bufferedImagesEqual(oneByOne(BLACK_TRANSPARENT), ImageUtil.fillImage(oneByOne(BLACK_TRANSPARENT), WHITE)));
  	}
test_case.class_method_signature: ImageUtilTest.fillImage()
test_case.full_signature: @Test public void fillImage()
test_case.identifier: fillImage
test_case.invocations: assertTrue bufferedImagesEqual centeredPixel fillImage centeredPixel assertTrue bufferedImagesEqual solidColor fillImage solidColor assertTrue bufferedImagesEqual oneByOne fillImage oneByOne
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void fillImage()
focal_class.file: runelite-client/src/main/java/net/runelite/client/util/ImageUtil.java
focal_class.identifier: ImageUtil
focal_class.class_method_signature: ImageUtil.bufferedImageFromImage(final Image image)
focal_class.full_signature: public static BufferedImage bufferedImageFromImage(final Image image)
focal_class.identifier: bufferedImageFromImage
focal_class.modifiers: public static
focal_class.parameters: (final Image image)
focal_class.return: BufferedImage
focal_class.signature: BufferedImage bufferedImageFromImage(final Image image)
focal_class.class_method_signature: ImageUtil.toARGB(final Image image)
focal_class.full_signature: public static BufferedImage toARGB(final Image image)
focal_class.identifier: toARGB
focal_class.modifiers: public static
focal_class.parameters: (final Image image)
focal_class.return: BufferedImage
focal_class.signature: BufferedImage toARGB(final Image image)
focal_class.class_method_signature: ImageUtil.luminanceOffset(final Image rawImg, final int offset)
focal_class.full_signature: public static BufferedImage luminanceOffset(final Image rawImg, final int offset)
focal_class.identifier: luminanceOffset
focal_class.modifiers: public static
focal_class.parameters: (final Image rawImg, final int offset)
focal_class.return: BufferedImage
focal_class.signature: BufferedImage luminanceOffset(final Image rawImg, final int offset)
focal_class.class_method_signature: ImageUtil.luminanceScale(final Image rawImg, final float percentage)
focal_class.full_signature: public static BufferedImage luminanceScale(final Image rawImg, final float percentage)
focal_class.identifier: luminanceScale
focal_class.modifiers: public static
focal_class.parameters: (final Image rawImg, final float percentage)
focal_class.return: BufferedImage
focal_class.signature: BufferedImage luminanceScale(final Image rawImg, final float percentage)
focal_class.class_method_signature: ImageUtil.alphaOffset(final Image rawImg, final int offset)
focal_class.full_signature: public static BufferedImage alphaOffset(final Image rawImg, final int offset)
focal_class.identifier: alphaOffset
focal_class.modifiers: public static
focal_class.parameters: (final Image rawImg, final int offset)
focal_class.return: BufferedImage
focal_class.signature: BufferedImage alphaOffset(final Image rawImg, final int offset)
focal_class.class_method_signature: ImageUtil.alphaOffset(final Image rawImg, final float percentage)
focal_class.full_signature: public static BufferedImage alphaOffset(final Image rawImg, final float percentage)
focal_class.identifier: alphaOffset
focal_class.modifiers: public static
focal_class.parameters: (final Image rawImg, final float percentage)
focal_class.return: BufferedImage
focal_class.signature: BufferedImage alphaOffset(final Image rawImg, final float percentage)
focal_class.class_method_signature: ImageUtil.grayscaleImage(final BufferedImage image)
focal_class.full_signature: public static BufferedImage grayscaleImage(final BufferedImage image)
focal_class.identifier: grayscaleImage
focal_class.modifiers: public static
focal_class.parameters: (final BufferedImage image)
focal_class.return: BufferedImage
focal_class.signature: BufferedImage grayscaleImage(final BufferedImage image)
focal_class.class_method_signature: ImageUtil.resizeImage(final BufferedImage image, final int newWidth, final int newHeight)
focal_class.full_signature: public static BufferedImage resizeImage(final BufferedImage image, final int newWidth, final int newHeight)
focal_class.identifier: resizeImage
focal_class.modifiers: public static
focal_class.parameters: (final BufferedImage image, final int newWidth, final int newHeight)
focal_class.return: BufferedImage
focal_class.signature: BufferedImage resizeImage(final BufferedImage image, final int newWidth, final int newHeight)
focal_class.class_method_signature: ImageUtil.resizeCanvas(final BufferedImage image, final int newWidth, final int newHeight)
focal_class.full_signature: public static BufferedImage resizeCanvas(final BufferedImage image, final int newWidth, final int newHeight)
focal_class.identifier: resizeCanvas
focal_class.modifiers: public static
focal_class.parameters: (final BufferedImage image, final int newWidth, final int newHeight)
focal_class.return: BufferedImage
focal_class.signature: BufferedImage resizeCanvas(final BufferedImage image, final int newWidth, final int newHeight)
focal_class.class_method_signature: ImageUtil.rotateImage(final BufferedImage image, final double theta)
focal_class.full_signature: public static BufferedImage rotateImage(final BufferedImage image, final double theta)
focal_class.identifier: rotateImage
focal_class.modifiers: public static
focal_class.parameters: (final BufferedImage image, final double theta)
focal_class.return: BufferedImage
focal_class.signature: BufferedImage rotateImage(final BufferedImage image, final double theta)
focal_class.class_method_signature: ImageUtil.flipImage(final BufferedImage image, final boolean horizontal, final boolean vertical)
focal_class.full_signature: public static BufferedImage flipImage(final BufferedImage image, final boolean horizontal, final boolean vertical)
focal_class.identifier: flipImage
focal_class.modifiers: public static
focal_class.parameters: (final BufferedImage image, final boolean horizontal, final boolean vertical)
focal_class.return: BufferedImage
focal_class.signature: BufferedImage flipImage(final BufferedImage image, final boolean horizontal, final boolean vertical)
focal_class.class_method_signature: ImageUtil.outlineImage(final BufferedImage image, final Color color)
focal_class.full_signature: public static BufferedImage outlineImage(final BufferedImage image, final Color color)
focal_class.identifier: outlineImage
focal_class.modifiers: public static
focal_class.parameters: (final BufferedImage image, final Color color)
focal_class.return: BufferedImage
focal_class.signature: BufferedImage outlineImage(final BufferedImage image, final Color color)
focal_class.class_method_signature: ImageUtil.outlineImage(final BufferedImage image, final Color color, final Boolean outlineCorners)
focal_class.full_signature: public static BufferedImage outlineImage(final BufferedImage image, final Color color, final Boolean outlineCorners)
focal_class.identifier: outlineImage
focal_class.modifiers: public static
focal_class.parameters: (final BufferedImage image, final Color color, final Boolean outlineCorners)
focal_class.return: BufferedImage
focal_class.signature: BufferedImage outlineImage(final BufferedImage image, final Color color, final Boolean outlineCorners)
focal_class.class_method_signature: ImageUtil.getResourceStreamFromClass(final Class c, final String path)
focal_class.full_signature: public static BufferedImage getResourceStreamFromClass(final Class c, final String path)
focal_class.identifier: getResourceStreamFromClass
focal_class.modifiers: public static
focal_class.parameters: (final Class c, final String path)
focal_class.return: BufferedImage
focal_class.signature: BufferedImage getResourceStreamFromClass(final Class c, final String path)
focal_class.class_method_signature: ImageUtil.fillImage(final BufferedImage image, final Color color)
focal_class.full_signature: public static BufferedImage fillImage(final BufferedImage image, final Color color)
focal_class.identifier: fillImage
focal_class.modifiers: public static
focal_class.parameters: (final BufferedImage image, final Color color)
focal_class.return: BufferedImage
focal_class.signature: BufferedImage fillImage(final BufferedImage image, final Color color)
focal_class.class_method_signature: ImageUtil.offset(final BufferedImage image, final float[] scales, final float[] offsets)
focal_class.full_signature: private static BufferedImage offset(final BufferedImage image, final float[] scales, final float[] offsets)
focal_class.identifier: offset
focal_class.modifiers: private static
focal_class.parameters: (final BufferedImage image, final float[] scales, final float[] offsets)
focal_class.return: BufferedImage
focal_class.signature: BufferedImage offset(final BufferedImage image, final float[] scales, final float[] offsets)
focal_class.class_method_signature: ImageUtil.getImageSpritePixels(BufferedImage image, Client client)
focal_class.full_signature: public static SpritePixels getImageSpritePixels(BufferedImage image, Client client)
focal_class.identifier: getImageSpritePixels
focal_class.modifiers: public static
focal_class.parameters: (BufferedImage image, Client client)
focal_class.return: SpritePixels
focal_class.signature: SpritePixels getImageSpritePixels(BufferedImage image, Client client)
focal_class.class_method_signature: ImageUtil.getImageIndexedSprite(BufferedImage image, Client client)
focal_class.full_signature: public static IndexedSprite getImageIndexedSprite(BufferedImage image, Client client)
focal_class.identifier: getImageIndexedSprite
focal_class.modifiers: public static
focal_class.parameters: (BufferedImage image, Client client)
focal_class.return: IndexedSprite
focal_class.signature: IndexedSprite getImageIndexedSprite(BufferedImage image, Client client)
focal_method.body: public static BufferedImage fillImage(final BufferedImage image, final Color color)
  	{
  		final BufferedImage filledImage = new BufferedImage(image.getWidth(), image.getHeight(), BufferedImage.TYPE_INT_ARGB);
  		for (int x = 0; x < filledImage.getWidth(); x++)
  		{
  			for (int y = 0; y < filledImage.getHeight(); y++)
  			{
  				final Color pixelColor = new Color(image.getRGB(x, y), true);
  				if (pixelColor.getAlpha() == 0)
  				{
  					continue;
  				}
  
  				filledImage.setRGB(x, y, color.getRGB());
  			}
  		}
  		return filledImage;
  	}
focal_method.class_method_signature: ImageUtil.fillImage(final BufferedImage image, final Color color)
focal_method.full_signature: public static BufferedImage fillImage(final BufferedImage image, final Color color)
focal_method.identifier: fillImage
focal_method.invocations: getWidth getHeight getWidth getHeight getRGB getAlpha setRGB getRGB
focal_method.modifiers: public static
focal_method.parameters: (final BufferedImage image, final Color color)
focal_method.return: BufferedImage
focal_method.signature: BufferedImage fillImage(final BufferedImage image, final Color color)