Everyone has use an AffineTransformOp on a Raster??

I want to rotate an image that use a class that implements Paint and PaintContents so based on a BufferedImage and a Raster, so I think I have to use an AffineTransformOp; but using it I could get the rotation; maybe I have made a mistake, so if someone can help... thanks!!