@Service(value=ImageProcessor.class) public class JavaGraphicsProvider extends ImageProcessor
ImageProcessor implementation based on the Java Abstract
Windowing Toolkit.| Constructor and Description |
|---|
JavaGraphicsProvider() |
| Modifier and Type | Method and Description |
|---|---|
BufferedImage |
flip(BufferedImage image,
int direction)
Flips an image
|
BufferedImage |
makeColorTransparent(BufferedImage image,
Color color)
Makes a
Color of an image transparent |
BufferedImage |
makeImageTranslucent(BufferedImage image,
float translucency)
Makes an image translucent.
|
BufferedImage |
resize(BufferedImage image,
int newWidth,
int newHeight)
Resizes an image
|
BufferedImage |
resizeProportional(BufferedImage image,
int newWidth,
int newHeight)
Resizes an image proportionally.
|
BufferedImage |
resizeRelative(BufferedImage image,
float resizeFactorWidth,
float resizeFactorHeight)
Resizes an image relatively to the original size.
|
BufferedImage |
resizeRelativeProportional(BufferedImage image,
float resizeFactor)
Resizes an image proportionally and relative to the original size.
|
BufferedImage |
rotate(BufferedImage image,
int angle)
Rotates an image by an angle defined in degrees.
|
makeAThumbnailpublic BufferedImage makeImageTranslucent(BufferedImage image, float translucency)
ImageProcessormakeImageTranslucent in class ImageProcessorpublic BufferedImage makeColorTransparent(BufferedImage image, Color color)
ImageProcessorColor of an image transparentmakeColorTransparent in class ImageProcessorpublic BufferedImage flip(BufferedImage image, int direction)
ImageProcessorflip in class ImageProcessordirection - 0 means horizontal
1 means verticalpublic BufferedImage rotate(BufferedImage image, int angle)
ImageProcessorrotate in class ImageProcessorpublic BufferedImage resize(BufferedImage image, int newWidth, int newHeight)
ImageProcessorresize in class ImageProcessorpublic BufferedImage resizeProportional(BufferedImage image, int newWidth, int newHeight)
ImageProcessorresizeProportional in class ImageProcessorpublic BufferedImage resizeRelative(BufferedImage image, float resizeFactorWidth, float resizeFactorHeight)
ImageProcessorresizeRelative in class ImageProcessorpublic BufferedImage resizeRelativeProportional(BufferedImage image, float resizeFactor)
ImageProcessorresizeRelativeProportional in class ImageProcessorCopyright © 2014 The Apache Software Foundation. All rights reserved.