}
float angle = (float) (((360-rotateSlider.getValue())*Math.PI)/180);
RotateFilter rotateFilter = new RotateFilter(angle);
return rotateFilter.filter(watermark, null);
}
private AlphaComposite makeComposite(float alpha) {
int type = AlphaComposite.SRC_OVER;
return (AlphaComposite.getInstance(type, alpha));