net.sourceforge.openutils.mgnlmedia.media.processors
Class ResizeCropCenteredImageResolutionProcessor
java.lang.Object
net.sourceforge.openutils.mgnlmedia.media.processors.BaseImageResolutionProcessor
net.sourceforge.openutils.mgnlmedia.media.processors.ResizeCropCenteredImageResolutionProcessor
- All Implemented Interfaces:
- ImageResolutionProcessor
- Direct Known Subclasses:
- PzcImageProcessor
public class ResizeCropCenteredImageResolutionProcessor
- extends BaseImageResolutionProcessor
Default ImageResolutionProcessor that resizes an image to contain the required resolution and then crops the
simmetric bands that outfits.
- Version:
- $Id: $
- Author:
- molaschi
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResizeCropCenteredImageResolutionProcessor
public ResizeCropCenteredImageResolutionProcessor()
getImageForResolution
public BufferedImage getImageForResolution(BufferedImage original,
int x,
int y,
Map<String,String> parameters)
- Process image
- Parameters:
original - original imagex - required widthy - required heightparameters - parameters
- Returns:
- resized image
Copyright © 2008-2011 Openmind. All Rights Reserved.