|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.wiki.service.image.impl.ResizeImageServiceImpl
public class ResizeImageServiceImpl
| Constructor Summary | |
|---|---|
ResizeImageServiceImpl(org.exoplatform.services.cache.CacheService caService)
|
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResizeImageServiceImpl(org.exoplatform.services.cache.CacheService caService)
| Method Detail |
|---|
public InputStream resizeImage(String imageName,
InputStream is,
int requestWidth,
int requestHeight,
boolean keepAspectRatio)
resizeImage in interface ResizeImageServiceimageName - 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
ResizeImageService.resizeImage(String, InputStream, int, int, boolean)
public InputStream resizeImageByWidth(String imageName,
InputStream is,
int requestWidth)
resizeImageByWidth in interface ResizeImageServiceimageName - is the name of image to be resizedis - is the input stream of imagerequestWidth - the new image widthResizeImageService.resizeImageByWidth(String, InputStream, int)
public InputStream resizeImageByHeight(String imageName,
InputStream is,
int requestHeight)
resizeImageByHeight in interface ResizeImageServiceimageName - is the name of image to be resizedis - is the input stream of imagerequestHeight - the new image height
ResizeImageService.resizeImageByHeight(String, InputStream, int)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||