ImageOrPrintOptions imgOptions = new ImageOrPrintOptions();
Worksheet sheet = book.getWorksheets().get(0);
SheetRender sr = new SheetRender(sheet, imgOptions);
sr.toImage(0, dir + “mysheetimg_0.out.png”);
Thank you Raza.
Thanks for your using Aspose.Cells.
Please download and try the latest fix: Aspose.Cells for Java v22.214.171.124 for CELLSJAVA-41780 and let us know your feedback.
Please try the new fix for “kick-start your work” disappearing issue.
Please set graphics’s text rendering hints to text-antialias-on for “Date range……” not clear by following code.
For picture bright issue, it is not fixed now. We guess your source file (MySheet.xlsx) was not created via excel. The “Brightness” and “Constrast” is not proper.
Please check attachment 1194.zip (will attach soon). In pic.xlsx, the 2 pictures have same brightness and contrast but they look different.
Thanks for using Aspose.Cells.
Here is the attachment link as mentioned in the above post.