jpeg without display

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Bryan

jpeg without display

Post by Bryan » Wed Jun 26, 2002 2:59 pm

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

David Gilbert

Re: jpeg without display

Post by David Gilbert » Wed Jun 26, 2002 5:33 pm

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.

Mello

Re: jpeg without display

Post by Mello » Mon Jul 15, 2002 1:54 pm

Could you be more especific because I'm not yet used to JFreeChart ...

Snebben

Re: jpeg without display

Post by Snebben » Wed Jul 17, 2002 2:49 pm

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

Locked