GL2 gl = dc.getGL().getGL2(); // GL initialization checks for GL2 compatibility.
// Rotate around an axis originating from the center of the image and coming out of the screen.
double hw = (double) texture.getWidth(dc) / 2d;
double hh = (double) texture.getHeight(dc) / 2d;
gl.glTranslated(hw, hh, 0);
gl.glRotated(-this.getAngle().degrees, 0, 0, 1);
gl.glTranslated(-hw, -hh, 0);
super.transformBackgroundImageCoordsToAnnotationCoords(dc, width, height, texture);
}