|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.seam.ui.graphicImage.Image
@Name(value="org.jboss.seam.graphicImage.image") @Install(precedence=0) @BypassInterceptors public class Image
Image manipulation and interrogation
Nested Class Summary | |
---|---|
static class |
Image.Type
|
Field Summary | |
---|---|
static int |
DEFAULT_IMAGE_TYPE
|
static int |
PNG_IMAGE_TYPE
|
Constructor Summary | |
---|---|
Image()
|
Method Summary | |
---|---|
Image |
adjustRatio(double desiredRatio,
double precision)
Alter the ratio of the output image without altering the ratio of the input by adding transparent strips. |
Image |
blur(int radius)
Blur the output image using a convolution |
java.awt.image.BufferedImage |
getBufferedImage()
|
Image.Type |
getContentType()
The content type of the output image, by default DEFAULT_CONTENT_TYPE |
java.lang.Integer |
getHeight()
The height of the image |
byte[] |
getImage()
Get the image as a byte[], any conversions having been applied. |
java.lang.Double |
getRatio()
The aspect ratio of the image |
java.lang.Integer |
getWidth()
The width of the image |
static Image |
instance()
|
java.lang.Boolean |
isRatio(double ratio,
double precision)
Check whether the image is of a given ratio to within a given precision |
Image |
resize(int width,
int height)
Resize the image to the given width and height, changing the ratio if necessary |
Image |
scale(double factor)
Scale the image by the given factor |
Image |
scaleToHeight(int height)
Scale the image to the given height |
Image |
scaleToWidth(int width)
Scale the image to the given width |
void |
setBufferedImage(java.awt.image.BufferedImage bufferedImage)
|
void |
setContentType(Image.Type contentType)
|
Image |
setInput(java.lang.Object value)
Set the image. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int PNG_IMAGE_TYPE
public static final int DEFAULT_IMAGE_TYPE
Constructor Detail |
---|
public Image()
Method Detail |
---|
public Image setInput(java.lang.Object value) throws java.io.IOException
value
-
java.io.IOException
public byte[] getImage() throws java.io.IOException
java.io.IOException
public Image.Type getContentType()
public void setContentType(Image.Type contentType)
public java.awt.image.BufferedImage getBufferedImage()
public void setBufferedImage(java.awt.image.BufferedImage bufferedImage)
public java.lang.Double getRatio() throws java.io.IOException
java.io.IOException
public java.lang.Boolean isRatio(double ratio, double precision) throws java.io.IOException
java.io.IOException
public java.lang.Integer getWidth() throws java.io.IOException
java.io.IOException
public java.lang.Integer getHeight() throws java.io.IOException
java.io.IOException
public Image adjustRatio(double desiredRatio, double precision) throws java.lang.InterruptedException, java.io.IOException
java.lang.InterruptedException
java.io.IOException
public Image blur(int radius) throws java.io.IOException
java.io.IOException
public Image scaleToWidth(int width) throws java.io.IOException
java.io.IOException
public Image scaleToHeight(int height) throws java.io.IOException
java.io.IOException
public Image scale(double factor) throws java.io.IOException
java.io.IOException
public Image resize(int width, int height)
public static Image instance()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |