graphics2D.drawImage(image, 0, 0, newWidth, newHeight, null);
retImage = thumbImage;
if (status != ImageItem.NORMAL) {
RotateFilter filter = new RotateFilter();
if (status == ImageItem.LEFT) {
filter.setAngle((float) Math.PI / 2);
} else if (status == ImageItem.DOWNSIDE) {
filter.setAngle((float) Math.PI);
} else if (status == ImageItem.RIGHT) {
filter.setAngle((float) (Math.PI + Math.PI / 2));
}
retImage = filter.filter(retImage, null);
}
return retImage;
}