from AffineTransform to ScaleAndShift