net.sourceforge.openutils.mgnlmedia.media.processors
Class RoundedCornersProcessor

java.lang.Object
  extended by 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:

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

Constructor Summary
RoundedCornersProcessor()
           
 
Method Summary
 BufferedImage processImage(BufferedImage image, int x, int y, Map<String,String> parameters)
          Process image
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoundedCornersProcessor

public RoundedCornersProcessor()
Method Detail

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 process
x - width
y - height
parameters - parameters map
Returns:
processed image


Copyright © 2008-2011 Openmind. All Rights Reserved.