I would like to save my IFigure tree as a .png image. This image is then used in a BIRT report where all images have 300 DPI resolution.
So I do something like this:
double scale = 300 / Display.getDefault().getDPI().y;
Image image = new Image(Display.getDefault(), figure.getSize().width * scale, figure.getSize().heigth * scale);
GC gc = new GC(image);
Graphics g = new SWTGraphics(gc);
The problem is when the figure contains labels. Sometimes its text is cropped. Has anybody the same problem?