Convertir un "camenbert" au format PNG
Bonjour
J'utilise la librairie jFreeChart et je souhaiterai sauvegarder mon camenbert (PieChart) au format PNG avec la méthode:
saveChartAsPNG(file, chart, width, height).
Je vous donne un petit bout de code:
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13
|
public static void saveChartAsPNG(File file, JFreeChart chart, int width, int height) throws IOException {
//defer argument checking...
saveChartAsPNG(file, chart, width, height);
public static void main(String[] args) {
PieChartDemo1 demo = new PieChartDemo1("PieChartDemo1");
demo.pack();
RefineryUtilities.centerFrameOnScreen(demo);
demo.setVisible(true);
} |
Pourriez vous m'aider à trouver la solution, je vous en remercie d'avance!