导出图表
Contents
[
Hide
]
获取图表图像
Aspose.Slides for PHP via Java 提供了提取特定图表图像的支持。以下是示例代码。
$pres = new Presentation();
try {
$chart = $pres->getSlides()->get_Item(0)->getShapes()->addChart(ChartType::ClusteredColumn, 50, 50, 600, 400);
$slideImage = $chart->getImage();
try {
$slideImage->save("image.jpg", ImageFormat::Jpeg);
} finally {
if (!java_is_null($slideImage)) {
$slideImage->dispose();
}
}
} finally {
if (!java_is_null($pres)) {
$pres->dispose();
}
}