--- In jsci@yahoogroups.com, "netkgb007" <netkgb007@y...> wrote:
> I was wondering if anybody has tried saving the
> bargraphs/linegraphs/piecharts they created with JSci as an image
> into a jpg or png file?
> Thanks again!
I think this is possible if you have J2SE 1.4.1 or appropriate 3rd
party libraries. You would need to do something like:
BufferedImage img = new BufferedImage(component.getWidth(),
component.getHeight(), BufferedImage.TYPE_INT_RGB);
component.printAll(img.getGraphics());
ImageIO.write(img, "jpg", new File("myimg.jpg"));