生成条件格式数据条形图像
Contents
[
Hide
]
有时,您需要生成条件格式数据条的图像。您可以使用Aspose.Cells的DataBar.toImage(Cell, ImageOrPrintOptions)方法生成这些图像。本文展示了如何使用Aspose.Cells生成DataBar图像。
以下示例代码生成单元格C1的DataBar图片。首先,它访问单元格的格式条件对象,然后从该对象访问 DataBar ,并使用其 DataBar.toImage(Cell, ImageOrPrintOptions) 方法生成单元格的图片。最后,它将图片保存到磁盘上。