Aspose.Cells - Convert Chart to Image

//Get the Chart image
ImageOrPrintOptions imgOpts = new ImageOrPrintOptions();
imgOpts.setImageFormat(ImageFormat.getPng());

//Save the chart image file.
chart.toImage(new FileOutputStream(dataPath + "AsposeChartImage_Out.png"), imgOpts);

Download Source Code
For More Examples, Please Visit Aspose Docs

Last edited Nov 6, 2014 at 1:55 PM by shoaibkhan, version 1