hey all,
I'm trying to print\paint\render a tree to an image\file\gc.
the problem is i'm getting the tree limited to the current displayed size with it's scroll bars. I can't seem to 'go lower'. any advice?
here's my code
String saveTo = "C:\\tmp.jpg";
if (saveTo != null) {
Tree g = m_flowTree.getTree();
Point size = g.getSize();
final Image image = new Image(null, size.x, size.y);
GC gc = new GC(image);
g.print(gc);
gc.copyArea(image, 0, 0);
gc.dispose();
ImageLoader imageLoader = new ImageLoader();
imageLoader.data = new ImageData[] { image.getImageData() };
imageLoader.save(saveTo, SWT.IMAGE_JPEG);