org.lee.mugen.imageIO
Class ImageScale2x
java.lang.Object
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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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()