com.liferay.portal.kernel.image
Class ImageProcessorUtil
java.lang.Object
com.liferay.portal.kernel.image.ImageProcessorUtil
public class ImageProcessorUtil
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImageProcessorUtil
public ImageProcessorUtil()
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)