Class NullResizer

  • All Implemented Interfaces:
    Resizer

    public class NullResizer
    extends AbstractResizer
    A Resizer which does not actually resize the image.

    The source image will be drawn at the origin of the destination image.

    Since:
    0.4.0
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
        NullResizer()
      Instantiates the NullResizer which draws the source image at the origin of the destination image.
      private NullResizer​(java.lang.Object interpolationValue, java.util.Map<java.awt.RenderingHints.Key,​java.lang.Object> hints)
      This constructor is private to prevent the rendering hints from being set, as this Resizer does not perform any resizing.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void resize​(java.awt.image.BufferedImage srcImage, java.awt.image.BufferedImage destImage)
      Performs a resize operation from a source image and outputs to a destination image.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NullResizer

        public NullResizer()
        Instantiates the NullResizer which draws the source image at the origin of the destination image.
      • NullResizer

        private NullResizer​(java.lang.Object interpolationValue,
                            java.util.Map<java.awt.RenderingHints.Key,​java.lang.Object> hints)
        This constructor is private to prevent the rendering hints from being set, as this Resizer does not perform any resizing.
        Parameters:
        interpolationValue - Not used.
        hints - Not used.
    • Method Detail

      • resize

        public void resize​(java.awt.image.BufferedImage srcImage,
                           java.awt.image.BufferedImage destImage)
        Description copied from class: AbstractResizer

        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
        Overrides:
        resize in class AbstractResizer
        Parameters:
        srcImage - The source image.
        destImage - The destination image.