package net.coobird.thumbnailator.resizers; import java.awt.RenderingHints; import java.awt.image.BufferedImage; import java.util.Collections; import java.util.Map; /** * Image resizer class using bicubic interpolation for the resizing operation. * * @author coobird * */ public class BicubicResizer extends AbstractResizer { /** * Instantiates a {@link BicubicResizer} with default rendering hints. */ public BicubicResizer() { this(Collections.emptyMap()); } /** * Instantiates a {@link BicubicResizer} with the specified rendering hints. * * @param hints Additional rendering hints to apply. */ public BicubicResizer(Map hints) { super(RenderingHints.VALUE_INTERPOLATION_BICUBIC, hints); } /** *

* Resizes an image using bicubic interpolation. *

*

* If the source and/or destination image is {@code null}, then a * {@link NullPointerException} will be thrown. *

* * @param srcImage The source image. * @param destImage The destination image. * * @throws NullPointerException When the source and/or the destination * image is {@code null}. */ @Override public void resize(BufferedImage srcImage, BufferedImage destImage) throws NullPointerException { super.resize(srcImage, destImage); } }