public class Rotate extends Function { private OFImage theImage; public Rotate(String name) { super(name); } /** * Apply this function to an image */ public void apply(OFImage image) { int height = image.getHeight(); int width = image.getWidth(); //Rotate the image /*Graphics2D g = (Graphics2D) image.createGraphics(); g.rotate(Math.PI / 2); g.drawImage(image, 0,0,null);*/