Search the web
Sign In
New User? Sign Up
jsci
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
I need help, Thanks!   Message List  
Reply | Forward Message #95 of 369 |
Re: I need help, Thanks!

--- 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"));




Sat Apr 5, 2003 4:30 pm

mj_hale
Offline Offline

Forward
Message #95 of 369 |
Expand Messages Author Sort by Date

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!...
netkgb007
Offline Send Email
Mar 26, 2003
10:39 am

... 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...
mj_hale
Offline
Apr 5, 2003
4:30 pm

Thank you so much!...
netkgb007
Offline Send Email
Apr 6, 2003
9:47 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help