public class ImageScale2x
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
ImageScale2x(javax.swing.Icon srcImageIcon)
Creates a new scaler that will scale the passed image.
|
Modifier and Type | Method and Description |
---|---|
javax.swing.ImageIcon |
getScaledImage()
Retrieves the scaled image.
|
static void |
main(java.lang.String[] args)
An entry point and a bit of test code.
|
private final int height
@NotNull private final int[] srcData
private final int width
public ImageScale2x(@NotNull javax.swing.Icon srcImageIcon)
srcImageIcon
- the image to be scaled@NotNull public javax.swing.ImageIcon getScaledImage()
public static void main(@NotNull java.lang.String[] args)
args
- the command-line arguments (ignored)