public class Java2DProgressiveBilinearImageService extends AbstractJava2DImageService
AbstractJava2DImageService.OperationTypeAbstractImageService.ResizeCoordsJahiaImageService.ResizeType| Constructor and Description |
|---|
Java2DProgressiveBilinearImageService() |
| Modifier and Type | Method and Description |
|---|---|
protected Graphics2D |
getGraphics2D(BufferedImage dest,
AbstractJava2DImageService.OperationType operationType) |
BufferedImage |
resizeImage(BufferedImage image,
int width,
int height,
JahiaImageService.ResizeType resizeType)
Resize an image using different types of resize algorithms.
|
boolean |
resizeImage(Image image,
File outputFile,
int newWidth,
int newHeight,
JahiaImageService.ResizeType resizeType)
Resize an image using different types of resize algorithms.
|
canRead, cropImage, getDestImage, getHeight, getImage, getWidth, rotateImage, rotateImage, saveImageToFilecreateThumb, getResizeCoords, resizeImagepublic Java2DProgressiveBilinearImageService()
public boolean resizeImage(Image image, File outputFile, int newWidth, int newHeight, JahiaImageService.ResizeType resizeType) throws IOException
JahiaImageServiceresizeImage in interface JahiaImageServiceresizeImage in class AbstractJava2DImageServiceimage - the image to resizeoutputFile - the file in which to output the resized imagenewWidth - the width of the resized imagenewHeight - the height of the resized imageresizeType - the type of resize algorithm to use. Uses a ResizeType enum also available
in this interfaceIOExceptionpublic BufferedImage resizeImage(BufferedImage image, int width, int height, JahiaImageService.ResizeType resizeType)
JahiaImageServiceresizeImage in interface JahiaImageServiceresizeImage in class AbstractJava2DImageServiceimage - the image to resizewidth - the width of the resized imageheight - the height of the resized imageresizeType - the type of resize algorithm to use. Uses a JahiaImageService.ResizeType enum also available in this interfacenull in case of a failurefor details of the resizingprotected Graphics2D getGraphics2D(BufferedImage dest, AbstractJava2DImageService.OperationType operationType)
getGraphics2D in class AbstractJava2DImageServiceCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.