// because of the moved 0,0-reference, we have to shear in the opposite direction
ctm.setValue(0, 1, (-1)*ctm.getValue(0, 1));
ctm.setValue(1, 0, (-1)*ctm.getValue(1, 0));
AffineTransform ctmAT = ctm.createAffineTransform();
ctmAT.scale(1f/imageWidth, 1f/imageHeight);
drawer.drawImage( awtImage, ctmAT );
}
catch( Exception e )
{
e.printStackTrace();
LOG.error(e, e);