code: public static void main(String argv[])
      {
          String srcFile = "randam_orig.png";
          try
          {
              System.out.println("Reading: "+srcFile);
              BufferedImage src = ImageIO.read(new File(srcFile));
              ImageScale3x scaler = new ImageScale3x(src);
              BufferedImage out = scaler.getScaledImage();
  
              String outFile = srcFile.substring(0,srcFile.length()-4);
              outFile += "3x";
              outFile += ".png";
              System.out.println("Writing: "+outFile);
              ImageIO.write(out,"PNG",new File(outFile));
          } 
          catch (Exception e)
          {
              e.printStackTrace();
          }
      }
docs: An entry point and a bit of test code
  
  @param argv The arguments passed in to the test code