|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ResizeImageService
Provides different methods which handle images with the right ratio and optimize them.
| Method Summary | |
|---|---|
InputStream |
resizeImage(String imageName,
InputStream is,
int requestWidth,
int requestHeight,
boolean keepAspectRatio)
Resizes a given image to the specified dimensions. |
InputStream |
resizeImageByHeight(String imageName,
InputStream is,
int requestHeight)
Resizes a given image input stream to adapt with the desired height and keep the aspect ratio. |
InputStream |
resizeImageByWidth(String imageName,
InputStream is,
int requestWidth)
Resizes a given image to adapt with the desired width and keep the aspect ratio. |
| Method Detail |
|---|
InputStream resizeImage(String imageName,
InputStream is,
int requestWidth,
int requestHeight,
boolean keepAspectRatio)
imageName - Name of the image to be resized.is - The input stream of the image.requestWidth - The new width.requestHeight - The new height.keepAspectRatio - Keeps the aspect ratio or not.
InputStream resizeImageByWidth(String imageName,
InputStream is,
int requestWidth)
imageName - Name of the image to be resized.is - The input stream of the image.requestWidth - The desired width.
InputStream resizeImageByHeight(String imageName,
InputStream is,
int requestHeight)
imageName - Name of the resized image.is - The input stream of the image.requestHeight - The desired height.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||