com.liferay.portal.kernel.image
Interface ImageProcessor
- All Known Implementing Classes:
- ImageProcessorImpl
public interface ImageProcessor
TYPE_BMP
static final String TYPE_BMP
- See Also:
- Constant Field Values
TYPE_GIF
static final String TYPE_GIF
- See Also:
- Constant Field Values
TYPE_JPEG
static final String TYPE_JPEG
- See Also:
- Constant Field Values
TYPE_PNG
static final String TYPE_PNG
- See Also:
- Constant Field Values
TYPE_TIFF
static final String TYPE_TIFF
- See Also:
- Constant Field Values
TYPE_NOT_AVAILABLE
static final String TYPE_NOT_AVAILABLE
- See Also:
- Constant Field Values
convertImageType
BufferedImage convertImageType(BufferedImage sourceImage,
int type)
encodeGIF
void encodeGIF(RenderedImage renderedImage,
OutputStream os)
throws IOException
- Throws:
IOException
encodeWBMP
void encodeWBMP(RenderedImage renderedImage,
OutputStream os)
throws InterruptedException,
IOException
- Throws:
InterruptedException
IOException
getBufferedImage
BufferedImage getBufferedImage(RenderedImage renderedImage)
getBytes
byte[] getBytes(RenderedImage renderedImage,
String contentType)
throws IOException
- Throws:
IOException
read
ImageBag read(File file)
throws IOException
- Throws:
IOException
read
ImageBag read(byte[] bytes)
throws IOException
- Throws:
IOException
scale
RenderedImage scale(RenderedImage renderedImage,
int maxHeight,
int maxWidth)