org.lee.mugen.imageIO
Class ImageScale2x

java.lang.Object
  extended by org.lee.mugen.imageIO.ImageScale2x

public class ImageScale2x
extends java.lang.Object

A utility to perform the scale2x algorithm on a Java Image

Author:
Kevin Glass

Constructor Summary
ImageScale2x(java.awt.image.BufferedImage srcImage)
          Create a new scaler that will scale the passed image
 
Method Summary
static int[] getScaled2x(int[] pix, int[] pixel, int _width, int _height)
           
 java.awt.Image getScaledImage()
          Retrieve the scaled image.
 void refreshSrcArray()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageScale2x

public ImageScale2x(java.awt.image.BufferedImage srcImage)
Create a new scaler that will scale the passed image

Parameters:
srcImage - The image to be scaled
Method Detail

getScaledImage

public java.awt.Image getScaledImage()
Retrieve the scaled image. Note this is the method that actually does the work so it may take some time to return

Returns:
The newly scaled image

getScaled2x

public static int[] getScaled2x(int[] pix,
                                int[] pixel,
                                int _width,
                                int _height)

refreshSrcArray

public void refreshSrcArray()