com.realtime.crossfire.jxclient.faces
Class ImageScale2x

java.lang.Object
  extended by com.realtime.crossfire.jxclient.faces.ImageScale2x

public class ImageScale2x
extends java.lang.Object

A utility to perform the scale2x algorithm on a Java Image.


Field Summary
private  int height
          The height of the image.
private  int[] srcData
          The src data from the image.
private  int width
          The width of the image.
 
Constructor Summary
ImageScale2x(javax.swing.Icon srcImageIcon)
          Creates a new scaler that will scale the passed image.
 
Method Summary
 javax.swing.ImageIcon getScaledImage()
          Retrieves the scaled image.
static void main(java.lang.String[] 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
 

Field Detail

height

private final int height
The height of the image.


srcData

@NotNull
private final int[] srcData
The src data from the image.


width

private final int width
The width of the image.

Constructor Detail

ImageScale2x

public ImageScale2x(@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 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
                        java.lang.String[] args)
An entry point and a bit of test code.

Parameters:
args - the command-line arguments (ignored)