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

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

public class MultiStepResizer
extends BasicResizer

Highly inspired by http://today.java.net/lpt/a/362 This method will use a multi-step scaling technique that provides higher quality than the usual one-step technique (only useful in downscaling cases, where targetWidth or targetHeight is smaller than the original dimensions, and generally only when the BILINEAR hint is specified).

Version:
$Id$

Constructor Summary
MultiStepResizer()
           
 
Method Summary
 BufferedImage resize(BufferedImage src, Coords srcCoords, Size targetSize)
           
 
Methods inherited from class info.magnolia.imaging.operations.cropresize.resizers.BasicResizer
getInterpolation, getInterpolationHint, setInterpolation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiStepResizer

public MultiStepResizer()
Method Detail

resize

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


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