Skip to content
Snippets Groups Projects
Commit 282326f1 authored by tcarver's avatar tcarver
Browse files

fix for printing image

parent e65db808
Branches
Tags
No related merge requests found
......@@ -134,10 +134,12 @@ public class PrintArtemis extends ScrollPanel implements Printable
{
FeatureList flist = entry.getFeatureList();
Point ploc = flist.getViewport().getViewPosition();
//flist.setOpaque(false);
g2d.translate(0,-ploc.y);
flist.paintComponent(g2d);
//flist.setOpaque(true);
BufferedImage offScreen = new BufferedImage(flist.getViewport().getWidth(),
flist.getViewport().getHeight(), BufferedImage.TYPE_INT_RGB);
Graphics og = offScreen.getGraphics();
og.translate(0,-ploc.y);
flist.paintComponent(og);
g2d.drawImage(offScreen, 0, 0, null);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment