Java com.liferay.portal.kernel.image ImageToolUtil fields, constructors, methods, implement or subclass

Example usage for Java com.liferay.portal.kernel.image ImageToolUtil fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.liferay.portal.kernel.image ImageToolUtil.

The text is from its open source code.

Constructor

Method

RenderedImagecrop(RenderedImage renderedImage, int height, int width, int x, int y)
byte[]getBytes(RenderedImage renderedImage, String contentType)
Returns the image as a byte[].
ImageBagread(byte[] bytes)
Detects the image format and creates an ImageBag containing the RenderedImage and image type.
ImageBagread(File file)
Detects the image format and creates an ImageBag containing the RenderedImage and image type.
ImageBagread(InputStream inputStream)
RenderedImagescale(RenderedImage renderedImage, int maxHeight, int maxWidth)
Returns the scaled image based on the maximum height and width given while preserving the aspect ratio.
voidsetImageTool(ImageTool imageTool)
voidwrite(RenderedImage renderedImage, String contentType, OutputStream os)
Encodes the image using the content or image type.