palio.modules.imager
Class ImageData

java.lang.Object
  extended by palio.modules.imager.ImageData

public class ImageData
extends java.lang.Object

Author:
Mateusz Gembarzewski

Field Summary
static int JPG
           
static int PNG
           
 
Constructor Summary
ImageData()
           
ImageData(byte[] data, int filetype)
           
 
Method Summary
 ImageData blur()
          Blur a bit
 java.lang.Object clone()
           
 byte[] getBytes()
           
 int getHeight()
           
 java.awt.image.BufferedImage getImage()
           
 PBufferedImage getPBufferedImage(java.lang.String filename)
           
 int getWidth()
           
 ImageData resize(int sizeX, int sizeY)
           
 ImageData sharpen()
          Sharpen a bit
 ImageData thumbnail(int sizeX, int sizeY, boolean crop)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JPG

public static final int JPG
See Also:
Constant Field Values

PNG

public static final int PNG
See Also:
Constant Field Values
Constructor Detail

ImageData

public ImageData()

ImageData

public ImageData(byte[] data,
                 int filetype)
          throws java.io.IOException
Throws:
java.io.IOException
Method Detail

getBytes

public byte[] getBytes()
                throws UnsupportedFormatException,
                       java.io.IOException
Throws:
UnsupportedFormatException
java.io.IOException

resize

public ImageData resize(int sizeX,
                        int sizeY)

thumbnail

public ImageData thumbnail(int sizeX,
                           int sizeY,
                           boolean crop)

sharpen

public ImageData sharpen()
Sharpen a bit


blur

public ImageData blur()
Blur a bit


getWidth

public int getWidth()

getHeight

public int getHeight()

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

getImage

public java.awt.image.BufferedImage getImage()

getPBufferedImage

public PBufferedImage getPBufferedImage(java.lang.String filename)