public void drawLine(Color c, int thickness, Point start, Point end) {
		Graphics g = image.getGraphics();
		Graphics2D g2d = (Graphics2D) g;
		g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
		BasicStroke stroke = new BasicStroke(thickness);
		g2d.setStroke(stroke);
		g.setColor(c);
		g.drawLine(start.x, start.y, end.x, end.y);
	}
Draws a rectangle around the given component. The root parameter is used to calculate screen
coordinates. This allows you to capture a sub-component of a UI, drawing rectangles around
children of said sub-component.

<P>
If you are unsure of what to pass for <code>root</code>, the call
{@link #drawRectangleAround(JComponent, Color, int)} instead.

@param component the component to be en-rectangled
@param root the outermost container widget being displayed; null implies a top-level parent
@param color the rectangle color
@param padding the space between the rectangle and the component; more space makes the
           component more visible
@return the bounds of the drawn rectangle
Ghidra/Features/Base/src/main/java/help/screenshot/AbstractScreenShotGenerator.java