9091929394959697
//Get the Chart image ImageOrPrintOptions imgOpts = new ImageOrPrintOptions(); imgOpts.setImageFormat(ImageFormat.getPng()); //Save the chart image file. chart.toImage(new FileOutputStream("data/AsposeChartImage.png"), imgOpts); } }