Skip to content
Advertisement

How to scale a BufferedImage

Following the javadocs, I have tried to scale a BufferedImage without success here is my code:

JavaScript

I can’t understand why it is not working, any help?

Advertisement

Answer

AffineTransformOp offers the additional flexibility of choosing the interpolation type.

JavaScript

The fragment shown illustrates resampling, not cropping; this related answer addresses the issue; some related examples are examined here.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement