Free Support Forum -

How to crop png image



the documentation says, that I should cast to com.aspose.imaging.fileformats.png.PngImage. But that’s not possible, because of API visibility restrictions.

So what’s the appropriate way to crop a PNG image?

Best Regards,


Solved: I can cast to the parent of PnImage: RasterCachedImage. This class has the cop methods.

But what’s now with the documentation? I think it’s not correct.



I have observed your comments. Can you please confirm you have solved your issue on your own. For documentation we will investigate this on our end and will update your further.


@Adnan.Ahmad confirmed: I solved this issue on my end.



We are glad to know that you resolved issue on your own.