How to return one PNG object from a JFreeChart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Chaniat
Posts: 3
Joined: Thu Mar 19, 2009 9:48 am

How to return one PNG object from a JFreeChart

Post by Chaniat » Thu Mar 19, 2009 4:05 pm

Hello

I am using JFreeChart 1.1.11.

I would like include this java library into a web application (Servlet Bean and JSP)

Inside one bean, I would like write one getxxxx method, with the followed parameters
imput parameter: JFreeChart object
Output parameter: JPEG or PNG object

How can I.

Could you help me

Thank in advance

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Re: How to return one PNG object from a JFreeChart

Post by david.gilbert » Thu Mar 19, 2009 5:02 pm

Try ChartUtilities.saveChartAsPNG(...).
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

Locked