|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ResizeImageService
Created by The eXo Platform SAS Author : Lai Trung Hieu hieu.lai@exoplatform.com 2 Jun 2011
| Method Summary | |
|---|---|
InputStream |
resizeImage(String imageName,
InputStream is,
int requestWidth,
int requestHeight,
boolean keepAspectRatio)
Resize the given image input stream to the specified dimensions. |
InputStream |
resizeImageByHeight(String imageName,
InputStream is,
int requestHeight)
Resize the given image input stream to the adapt requested height and keep the aspect ratio. |
InputStream |
resizeImageByWidth(String imageName,
InputStream is,
int requestWidth)
Resize the given image input stream to the adapt requested width and keep the aspect ratio. |
| Method Detail |
|---|
InputStream resizeImage(String imageName,
InputStream is,
int requestWidth,
int requestHeight,
boolean keepAspectRatio)
imageName - is the name of image to be resizedis - is the input stream of imagerequestWidth - the new image widthrequestHeight - the new image heightkeepAspectRatio - keep the aspect ratio or not
InputStream resizeImageByWidth(String imageName,
InputStream is,
int requestWidth)
imageName - is the name of image to be resizedis - is the input stream of imagerequestWidth - the new image width
InputStream resizeImageByHeight(String imageName,
InputStream is,
int requestHeight)
imageName - is the name of image to be resizedis - is the input stream of imagerequestHeight - the new image height
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||