Save png wrong

Workbook wb = new Workbook("C:/测试背景颜色导出问题123.xlsx");
ImageOrPrintOptions o = new ImageOrPrintOptions();
o.setImageFormat(ImageFormat.getPng());
SheetRender rr = new SheetRender(wb.getWorksheets().get(0), o);
rr.toImage(0, "C:/测试背景颜色导出问题123.png");


png has some black background, which is transparent in picture of sheet

Hi,


Thanks for your posting and using Aspose.Cells.

We were able to observe this issue and logged it in our database for a fix.

This issue has been logged as

  • CELLSJAVA-42289 - Png has some black background which is transparent in picture of sheet

Hi,

Thanks for using Aspose.Cells.

The embedded image "图片 5" is emf dual file. In Emf only records, it is a black background, but in Emf Plus records, it is a transparent black background. We only support parse Emf only records now. We are now trying to support parse emf plus records, if we have any news for you, we will update you asap.