Export Chart
Contents
[
Hide
]
Get Chart Image
Aspose.Slides for Python via .NET provides support for extracting image of specific chart. Below sample example is given.
import aspose.slides.charts as charts
import aspose.slides as slides
with slides.Presentation("test.pptx") as presentation:
slide = presentation.slides[0]
chart = slide.shapes.add_chart(charts.ChartType.CLUSTERED_COLUMN, 50, 50, 600, 400)
with chart.get_image() as image:
image.save("image.png", slides.ImageFormat.PNG)