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

java.lang.Object
  extended by net.sourceforge.openutils.mgnlmedia.media.processors.BaseImageResolutionProcessor
      extended by net.sourceforge.openutils.mgnlmedia.media.processors.ResizeCropCenteredImageResolutionProcessor
All Implemented Interfaces:
ImageResolutionProcessor

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

Constructor Summary
ResizeCropCenteredImageResolutionProcessor()
           
 
Method Summary
 BufferedImage getImageForResolution(BufferedImage original, int x, int y, Map<String,String> parameters)
          Process image
 
Methods inherited from class net.sourceforge.openutils.mgnlmedia.media.processors.BaseImageResolutionProcessor
fill, fitIn, fitIn, resizeInOut
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResizeCropCenteredImageResolutionProcessor

public ResizeCropCenteredImageResolutionProcessor()
Method Detail

getImageForResolution

public BufferedImage getImageForResolution(BufferedImage original,
                                           int x,
                                           int y,
                                           Map<String,String> parameters)
Process image

Parameters:
original - original image
x - required width
y - required height
parameters - parameters
Returns:
resized image


Copyright © 2008-2010 Openmind. All Rights Reserved.