public class ImageIconData
extends java.lang.Object
implements java.io.Serializable
ImageIconStable
stable because this is easier to serialise via Json for
the web.Constructor and Description |
---|
ImageIconData(int width,
int height,
int[] pixels,
java.lang.String description) |
Modifier and Type | Method and Description |
---|---|
static ImageIconData |
fromImageIcon(javax.swing.ImageIcon imageIcon) |
java.lang.String |
getDescription() |
int |
getHeight() |
int[] |
getPixels() |
int |
getWidth() |
javax.swing.ImageIcon |
toImageIcon() |
public ImageIconData(int width, int height, int[] pixels, java.lang.String description)
public static ImageIconData fromImageIcon(javax.swing.ImageIcon imageIcon) throws java.io.IOException
java.io.IOException
public javax.swing.ImageIcon toImageIcon()
public int getWidth()
public int getHeight()
public int[] getPixels()
public java.lang.String getDescription()