Hope someone can help as I have been struggling with this for days..
I have created a graphics2D environment on the buffered image and now my understanding is I should be able to 'draw' on the image?
I have the code as follows:
// creating a blank image displayImage = new BufferedImage(200,200,BufferedImage.TYPE_INT_RGB); Graphics2D g2 = displayImage.createGraphics(); // creating 2D graphics environment to represent buffered image as drawing surface //g2.setPaint(Color.darkGray); // set backgroumd image to darkgray this has no affect ?? //btd.drawWholeTree(g2); treeLabel = new JLabel(new ImageIcon(displayImage));
Dude, that's a mess of unformatted code. It's kind of hard to look at. Try editing your post and adding UBB Code Tags around your code blocks so that they are easier to read. Once you've done that I bet someone will try and help you out.