Class BilinearResizer

  • All Implemented Interfaces:
    Resizer

    public class BilinearResizer
    extends AbstractResizer
    Image resizer class using bilinear interpolation for the resizing operation.
    • Constructor Detail

      • BilinearResizer

        public BilinearResizer()
        Instantiates a BilinearResizer with default rendering hints.
      • BilinearResizer

        public BilinearResizer​(java.util.Map<java.awt.RenderingHints.Key,​java.lang.Object> hints)
        Instantiates a BilinearResizer with the specified rendering hints.
        Parameters:
        hints - Additional rendering hints to apply.
    • Method Detail

      • resize

        public void resize​(java.awt.image.BufferedImage srcImage,
                           java.awt.image.BufferedImage destImage)
                    throws java.lang.NullPointerException

        Resizes an image using bilinear interpolation.

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

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