com.liferay.portal.kernel.image
Interface ImageTool
- All Known Implementing Classes:
- ImageToolImpl
public interface ImageTool
Method Summary |
Future<RenderedImage> |
convertCMYKtoRGB(byte[] bytes,
String type)
|
BufferedImage |
convertImageType(BufferedImage sourceImage,
int type)
|
void |
encodeGIF(RenderedImage renderedImage,
OutputStream os)
|
void |
encodeWBMP(RenderedImage renderedImage,
OutputStream os)
|
BufferedImage |
getBufferedImage(RenderedImage renderedImage)
|
byte[] |
getBytes(RenderedImage renderedImage,
String contentType)
|
Image |
getDefaultCompanyLogo()
|
Image |
getDefaultOrganizationLogo()
|
Image |
getDefaultSpacer()
|
Image |
getDefaultUserFemalePortrait()
|
Image |
getDefaultUserMalePortrait()
|
Image |
getImage(byte[] bytes)
|
Image |
getImage(File file)
|
Image |
getImage(InputStream is)
|
Image |
getImage(InputStream is,
boolean cleanUpStream)
|
boolean |
isNullOrDefaultSpacer(byte[] bytes)
|
ImageBag |
read(byte[] bytes)
|
ImageBag |
read(File file)
|
ImageBag |
read(InputStream inputStream)
|
RenderedImage |
scale(RenderedImage renderedImage,
int width)
|
RenderedImage |
scale(RenderedImage renderedImage,
int maxHeight,
int maxWidth)
|
void |
write(RenderedImage renderedImage,
String contentType,
OutputStream os)
|
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_NOT_AVAILABLE
static final String TYPE_NOT_AVAILABLE
- 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
convertCMYKtoRGB
Future<RenderedImage> convertCMYKtoRGB(byte[] bytes,
String type)
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 IOException
- Throws:
IOException
getBufferedImage
BufferedImage getBufferedImage(RenderedImage renderedImage)
getBytes
byte[] getBytes(RenderedImage renderedImage,
String contentType)
throws IOException
- Throws:
IOException
getDefaultCompanyLogo
Image getDefaultCompanyLogo()
getDefaultOrganizationLogo
Image getDefaultOrganizationLogo()
getDefaultSpacer
Image getDefaultSpacer()
getDefaultUserFemalePortrait
Image getDefaultUserFemalePortrait()
getDefaultUserMalePortrait
Image getDefaultUserMalePortrait()
getImage
Image getImage(byte[] bytes)
throws IOException
- Throws:
IOException
getImage
Image getImage(File file)
throws IOException
- Throws:
IOException
getImage
Image getImage(InputStream is)
throws IOException
- Throws:
IOException
getImage
Image getImage(InputStream is,
boolean cleanUpStream)
throws IOException
- Throws:
IOException
isNullOrDefaultSpacer
boolean isNullOrDefaultSpacer(byte[] bytes)
read
ImageBag read(byte[] bytes)
throws IOException
- Throws:
IOException
read
ImageBag read(File file)
throws IOException
- Throws:
IOException
read
ImageBag read(InputStream inputStream)
throws IOException
- Throws:
IOException
scale
RenderedImage scale(RenderedImage renderedImage,
int width)
scale
RenderedImage scale(RenderedImage renderedImage,
int maxHeight,
int maxWidth)
write
void write(RenderedImage renderedImage,
String contentType,
OutputStream os)
throws IOException
- Throws:
IOException