Liferay 6.0.5

com.liferay.portal.kernel.image
Class ImageProcessorUtil

java.lang.Object
  extended by com.liferay.portal.kernel.image.ImageProcessorUtil

public class ImageProcessorUtil
extends Object


Constructor Summary
ImageProcessorUtil()
           
 
Method Summary
static BufferedImage convertImageType(BufferedImage sourceImage, int type)
           
static void encodeGIF(RenderedImage renderedImage, OutputStream os)
           
static void encodeWBMP(RenderedImage renderedImage, OutputStream os)
           
static BufferedImage getBufferedImage(RenderedImage renderedImage)
           
static byte[] getBytes(RenderedImage renderedImage, String contentType)
           
static ImageProcessor getImageProcessor()
           
static ImageBag read(byte[] bytes)
           
static ImageBag read(File file)
           
static RenderedImage scale(RenderedImage renderedImage, int maxHeight, int maxWidth)
           
 void setImageProcessor(ImageProcessor imageProcessor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageProcessorUtil

public ImageProcessorUtil()
Method Detail

convertImageType

public static BufferedImage convertImageType(BufferedImage sourceImage,
                                             int type)

encodeGIF

public static void encodeGIF(RenderedImage renderedImage,
                             OutputStream os)
                      throws IOException
Throws:
IOException

encodeWBMP

public static void encodeWBMP(RenderedImage renderedImage,
                              OutputStream os)
                       throws InterruptedException,
                              IOException
Throws:
InterruptedException
IOException

getBufferedImage

public static BufferedImage getBufferedImage(RenderedImage renderedImage)

getBytes

public static byte[] getBytes(RenderedImage renderedImage,
                              String contentType)
                       throws IOException
Throws:
IOException

getImageProcessor

public static ImageProcessor getImageProcessor()

read

public static ImageBag read(File file)
                     throws IOException
Throws:
IOException

read

public static ImageBag read(byte[] bytes)
                     throws IOException
Throws:
IOException

scale

public static RenderedImage scale(RenderedImage renderedImage,
                                  int maxHeight,
                                  int maxWidth)

setImageProcessor

public void setImageProcessor(ImageProcessor imageProcessor)

Liferay 6.0.5