Export Chart
Contents
[
Hide
]
Get Chart Image
Aspose.Slides for .NET provides support for extracting image of specific chart. Below sample example is given.
using (Presentation presentation = new Presentation("test.pptx"))
{
ISlide slide = presentation.Slides[0];
IChart chart = slide.Shapes.AddChart(ChartType.ClusteredColumn, 50, 50, 600, 400);
using (IImage image = chart.GetImage())
{
image.Save("image.png", ImageFormat.Png);
}
}