If I make a graph or chart and I do not want to display the graph, but I want to save the image to a file such as jpeg or gif. Can this be done?
thanks
Bryan
jpeg without display
Re: jpeg without display
Just create a JFreeChart instance (you can use ChartFactory for this) and then use ChartUtilities.saveChartAsJPEG or ChartUtilities.saveChartAsPNG (the latter gives better quality).
Regards,
DG.
Regards,
DG.
Re: jpeg without display
Could you be more especific because I'm not yet used to JFreeChart ...
Re: jpeg without display
JPeg and Png are covered, how about a way to get a gif without receiving the IOException: too may colors for a gif?
Thanks,
snebben
Thanks,
snebben