public static Image padImage(Image i, Color c, int top, int left, int right, int bottom) {
		int width = i.getWidth(null) + left + right;
		int height = i.getHeight(null) + top + bottom;
		BufferedImage newImage = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB);
		Graphics g = newImage.getGraphics();
		g.setColor(c);
		g.fillRect(0, 0, width, height);
		g.drawImage(i, left, top, null);
		g.dispose();

		waitForImage(null, newImage);
		return newImage;
	}
Pads the given image with space in the amount given.

@param i the image to pad
@param c the color to use for the padding background
@param top the top padding
@param left the left padding
@param right the right padding
@param bottom the bottom padding
@return a new image with the given image centered inside of padding
Ghidra/Framework/Gui/src/main/java/generic/util/image/ImageUtils.java