public static byte [ ] resize ( final BufferedImage originalImage , final String formatName , final int targetWidth , final int targetHeight ) { return resize ( originalImage , Scalr . Method . QUALITY , Scalr . Mode . FIT_EXACT , formatName , targetWidth , targetHeight ) ; }
Resize the given BufferedImage .