com.liferay.portal.kernel.image
Class ImageProcessorUtil
java.lang.Object
com.liferay.portal.kernel.image.ImageProcessorUtil
public class ImageProcessorUtil
- extends java.lang.Object
View Source
- Author:
- Brian Wing Shun Chan
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImageProcessorUtil
public ImageProcessorUtil()
convertImageType
public static java.awt.image.BufferedImage convertImageType(java.awt.image.BufferedImage sourceImage,
int type)
encodeGIF
public static void encodeGIF(java.awt.image.RenderedImage renderedImage,
java.io.OutputStream os)
throws java.io.IOException
- Throws:
java.io.IOException
encodeWBMP
public static void encodeWBMP(java.awt.image.RenderedImage renderedImage,
java.io.OutputStream os)
throws java.lang.InterruptedException,
java.io.IOException
- Throws:
java.lang.InterruptedException
java.io.IOException
getBufferedImage
public static java.awt.image.BufferedImage getBufferedImage(java.awt.image.RenderedImage renderedImage)
getImageProcessor
public static ImageProcessor getImageProcessor()
read
public static ImageBag read(java.io.File file)
throws java.io.IOException
- Throws:
java.io.IOException
read
public static ImageBag read(byte[] bytes)
throws java.io.IOException
- Throws:
java.io.IOException
scale
public static java.awt.image.RenderedImage scale(java.awt.image.RenderedImage renderedImage,
int maxHeight,
int maxWidth)
setImageProcessor
public void setImageProcessor(ImageProcessor imageProcessor)