Interface ImageResizeService
- 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
Modifier and TypeMethodDescriptionbyte[]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 resizedwidth- Target resized image widthheight- Target resized image heightfitExact- 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
-