java.lang.Objectcom.realtime.crossfire.jxclient.faces.ImageScale2x
public class ImageScale2x
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 |
|---|
private final int height
@NotNull private final int[] srcData
private final int width
| Constructor Detail |
|---|
public ImageScale2x(@NotNull
javax.swing.Icon srcImageIcon)
srcImageIcon - the image to be scaled| Method Detail |
|---|
@NotNull public javax.swing.ImageIcon getScaledImage()
public static void main(@NotNull
java.lang.String[] args)
args - the command-line arguments (ignored)