- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
byte[]
scaleImage(byte[] image,
int width,
int height,
boolean fitExact,
boolean ultraQuality)
Create a scaled image by resizing an initial given image
-
Method Details
-
scaleImage
byte[] scaleImage(byte[] image,
int width,
int height,
boolean fitExact,
boolean ultraQuality)
throws Exception
Create a scaled image by resizing an initial given image
- Parameters:
image - Target image content to be resized
width - Target resized image width
height - Target resized image height
fitExact - Fit resized image to the exact given with and height (true) or automatic fit (false)
ultraQuality - return an ultra quality resized image (may take more execution time)
- Returns:
- byte array of image content
- Throws:
Exception