org.lee.mugen.imageIO
Class RawScale3x

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

public class RawScale3x
extends java.lang.Object

A simple implementation of the Scale3x algorithm for scaling raw image data.

Author:
Kevin Glass

Constructor Summary
RawScale3x(int[] imageData, int dataWidth, int dataHeight)
          Create a new scaler based on some raw data.
 
Method Summary
 int[] getScaledData()
          Get the scale image data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RawScale3x

public RawScale3x(int[] imageData,
                  int dataWidth,
                  int dataHeight)
Create a new scaler based on some raw data. Right now it doesn't matter what order the channels in, just that its an int per pixel

Parameters:
imageData - The source image data
dataWidth - The width of the source image
dataHeight - The height of the source image
Method Detail

getScaledData

public int[] getScaledData()
Get the scale image data. Note this is the method that does the work so it might take some time to process.

Returns:
An array of pixels 9 times the size of the input array containing the smoothly scaled image