net.coobird.thumbnailator.resizers
Class AbstractResizer

java.lang.Object
  extended by net.coobird.thumbnailator.resizers.AbstractResizer
All Implemented Interfaces:
Resizer
Direct Known Subclasses:
BicubicResizer, BilinearResizer, NullResizer, ProgressiveBilinearResizer

public abstract class AbstractResizer
extends Object
implements Resizer

A class which performs a resize operation on a source image and outputs the result to a destination image.

Author:
coobird

Method Summary
 Map<RenderingHints.Key,Object> getRenderingHints()
          Returns the rendering hints that the resizer uses.
 void resize(BufferedImage srcImage, BufferedImage destImage)
           Performs a resize operation from a source image and outputs to a destination image.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

resize

public void resize(BufferedImage srcImage,
                   BufferedImage destImage)

Performs a resize operation from a source image and outputs to a destination image.

If the source or destination image is null, then a NullPointerException will be thrown.

Specified by:
resize in interface Resizer
Parameters:
srcImage - The source image.
destImage - The destination image.
Throws:
NullPointerException - When the source and/or the destination image is null.

getRenderingHints

public Map<RenderingHints.Key,Object> getRenderingHints()
Returns the rendering hints that the resizer uses.

The keys and values used for the rendering hints are those defined in the RenderingHints class.

Returns:
Rendering hints used when resizing the image.
See Also:
RenderingHints


Copyright © 2014. All rights reserved.