Liferay 6.2.0

com.liferay.portal.kernel.image
Interface ImageTool

All Known Implementing Classes:
ImageToolImpl

public interface ImageTool


Field Summary
static String TYPE_BMP
           
static String TYPE_GIF
           
static String TYPE_JPEG
           
static String TYPE_NOT_AVAILABLE
           
static String TYPE_PNG
           
static String TYPE_TIFF
           
 
Method Summary
abstract  Future<RenderedImage> convertCMYKtoRGB(byte[] bytes, String type)
           
abstract  BufferedImage convertImageType(BufferedImage sourceImage, int type)
           
abstract  void encodeGIF(RenderedImage renderedImage, OutputStream os)
           
abstract  void encodeWBMP(RenderedImage renderedImage, OutputStream os)
           
abstract  BufferedImage getBufferedImage(RenderedImage renderedImage)
           
abstract  byte[] getBytes(RenderedImage renderedImage, String contentType)
           
abstract  Image getDefaultCompanyLogo()
           
abstract  Image getDefaultOrganizationLogo()
           
abstract  Image getDefaultSpacer()
           
abstract  Image getDefaultUserFemalePortrait()
           
abstract  Image getDefaultUserMalePortrait()
           
abstract  Image getImage(byte[] bytes)
           
abstract  Image getImage(File file)
           
abstract  Image getImage(InputStream is)
           
abstract  Image getImage(InputStream is, boolean cleanUpStream)
           
abstract  boolean isNullOrDefaultSpacer(byte[] bytes)
           
abstract  ImageBag read(byte[] bytes)
           
abstract  ImageBag read(File file)
           
abstract  ImageBag read(InputStream inputStream)
           
abstract  RenderedImage scale(RenderedImage renderedImage, int width)
           
abstract  RenderedImage scale(RenderedImage renderedImage, int maxHeight, int maxWidth)
           
abstract  void write(RenderedImage renderedImage, String contentType, OutputStream os)
           
 

Field Detail

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
Method Detail

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

Liferay 6.2.0