Please ignore my previous reply. In the new version (Aspose.Cells for Java v22.8), you may refer to the following lines of code for guidance.
e.g. Sample code:
ImageOrPrintOptions saveOptions = new ImageOrPrintOptions();
saveOptions.setImageType(ImageType.JPEG);
saveOptions.setImageType(ImageType.PNG);
ImageOrPrintOptions.setImageType() is not deprecated or removed rather you will use it in the above way. Moreover, setSaveFormat is deprecated.
For ImageOrPrintOptions.setImageFormat, please use ImageOrPrintOptions.setImageType instead.
For ImageOrPrintOptions.setChartImageType and PdfSaveOptions.setImageType:
Because Chart and Shape are always rendered as vector elements(e.g. point, line) for rendering quality, so please just remove them.