gc.setTextAntialias(SWT.OFF);
}
Graphics graphics = new SWTGraphics(gc);
rootFigure.paint(graphics);
graphics.dispose();
ImageLoader loader = new ImageLoader();
loader.data = new ImageData[]{image.getImageData()};
ByteArrayOutputStream os = new ByteArrayOutputStream();