Hi I've trying to rotate a BufferedImage in Java but anything works fine. This is my code:
public void RotateImageNDegrees(String angulo){
AffineTransform tx = new AffineTransform();
tx.rotate(Double.parseDouble(angulo), bimage.getWidth() / 2, bimage.getHeight() / 2);
AffineTransformOp op = new AffineTransformOp(tx,
AffineTransformOp.TYPE_BILINEAR);
bimage = op.filter(bimage, null);
drawImageInFrame(bimage); //Use bimage width and height to paint in a Frame
}
The method "drawImageInFrame(bimage);" draws the image using bimage width and height to set the size of the JFrame.
This is what it returns:
http://i61.tinypic.com/2ic3590.jpg
But what I need is something like:
http://i59.tinypic.com/14l7wuu.jpg
Thanks everybody =D