I have a JFrame, and periodically I paint a PNG image on screen using paintComponent. The image rotates following the mouse pointer.
When the image rotates the quality it's just terrible (in the photo).
The PNG is 20x10 pixels.

What to do?
//Rotating System
backup = g2d.getTransform();
a = AffineTransform.getRotateInstance(Math.toRadians(turret.angle), turret.x, turret.y);
g2d.setTransform(a);
g2d.drawImage(turret.sprite, (int) turret.x - 6, (int) turret.y - 15, null);
g2d.setTransform(backup);