info.magnolia.imaging.operations.cropresize.resizers
Class BasicResizer

java.lang.Object
  extended by info.magnolia.imaging.operations.cropresize.resizers.BasicResizer
All Implemented Interfaces:
Resizer
Direct Known Subclasses:
MultiStepResizer

public class BasicResizer
extends Object
implements Resizer

Basic implementation of a Resizer.

Version:
$Id$

Constructor Summary
BasicResizer()
           
 
Method Summary
 String getInterpolation()
           
protected  Object getInterpolationHint()
           
 BufferedImage resize(BufferedImage src, Coords srcCoords, Size targetSize)
           
 void setInterpolation(String interpolation)
          One of "nearest_neighbor", "bilinear" or "bicubic".
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicResizer

public BasicResizer()
Method Detail

resize

public BufferedImage resize(BufferedImage src,
                            Coords srcCoords,
                            Size targetSize)
Specified by:
resize in interface Resizer

getInterpolationHint

protected Object getInterpolationHint()

getInterpolation

public String getInterpolation()

setInterpolation

public void setInterpolation(String interpolation)
One of "nearest_neighbor", "bilinear" or "bicubic".

See Also:
TODO : make this an enum, when content2bean supports it.


Copyright © 2013 Magnolia International Ltd.. All Rights Reserved.