Drawing a line on a BufferedImage
I'm trying to draw a line on a BufferedImage. The start point of the line is where the mouse is clicked and the end point is where the mouse is released. I want the line to be displayed as the mouse is dragging.
Is there a way to do this without repainting the image every time the mouse moves while dragging? The image is big and repainting is slow.

