Class ImageScale2x


  • public class ImageScale2x
    extends java.lang.Object
    A utility to perform the scale2x algorithm on a Java Image.
    • Constructor Summary

      Constructors 
      Constructor Description
      ImageScale2x​(@NotNull javax.swing.Icon srcImageIcon)
      Creates a new scaler that will scale the passed image.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      @NotNull javax.swing.ImageIcon getScaledImage()
      Retrieves the scaled image.
      static void main​(@NotNull java.lang.String @NotNull [] args)
      An entry point and a bit of test code.
      • Methods inherited from class java.lang.Object

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

      • ImageScale2x

        public ImageScale2x​(@NotNull
                            @NotNull javax.swing.Icon srcImageIcon)
        Creates a new scaler that will scale the passed image.
        Parameters:
        srcImageIcon - the image to be scaled
    • Method Detail

      • getScaledImage

        @NotNull
        public @NotNull javax.swing.ImageIcon getScaledImage()
        Retrieves the scaled image. Note this is the method that actually does the work so it may take some time to return.
        Returns:
        the scaled image
      • main

        public static void main​(@NotNull
                                @NotNull java.lang.String @NotNull [] args)
        An entry point and a bit of test code.
        Parameters:
        args - the command-line arguments (ignored)