|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.confluence.plugins.avatar.DefaultImageHelper
public class DefaultImageHelper
| Constructor Summary | |
|---|---|
DefaultImageHelper()
|
|
| Method Summary | |
|---|---|
java.io.InputStream |
autoCropAndResize(java.io.InputStream imageStream)
Crops the largest centre square in the image provided. |
java.io.InputStream |
cropAndResize(java.io.InputStream imageStream,
int x,
int y,
int width,
int height)
Returns a crop of the specified area denoted with x and y offets spanning the specified width and height. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultImageHelper()
| Method Detail |
|---|
public java.io.InputStream autoCropAndResize(java.io.InputStream imageStream)
ImageHelper
autoCropAndResize in interface ImageHelperimageStream - the stream of the image.
public java.io.InputStream cropAndResize(java.io.InputStream imageStream,
int x,
int y,
int width,
int height)
ImageHelper
cropAndResize in interface ImageHelperimageStream - the stream of the imagex - the x offsety - the y offsetwidth - the width of the crop areaheight - the height of the crop area
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||