Free Support Forum - aspose.com

How to crop png image


#1

Hi,

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,
Frank


#2

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.


#3

@fbu,

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.


#4

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


#5

@fbu,

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