net.sourceforge.openutils.mgnlmedia.media.processors
Class RoundedCornersProcessor
java.lang.Object
net.sourceforge.openutils.mgnlmedia.media.processors.RoundedCornersProcessor
- All Implemented Interfaces:
- ImagePostProcessor
public class RoundedCornersProcessor
- extends Object
- implements ImagePostProcessor
Generate rounded corners on images.
Activated by declaring the parameter roundcorners; its value can be:
- no value or true: processor draws roundcorners with 5px radius
- int value: processor draws roundcorners with passed radius
If the "background" parameter is specified (hex color), it will be applied when rounding corners.
If no "background" parameter is found, if the image format is png a transparent background is applied else a white
background is applied.
- Version:
- $Id: $
- Author:
- molaschi
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RoundedCornersProcessor
public RoundedCornersProcessor()
processImage
public BufferedImage processImage(BufferedImage image,
int x,
int y,
Map<String,String> parameters)
- Process image
- Specified by:
processImage in interface ImagePostProcessor
- Parameters:
image - image to processx - widthy - heightparameters - parameters map
- Returns:
- processed image
Copyright © 2008-2011 Openmind. All Rights Reserved.