ewe.fx
Class ImageBytes
java.lang.Object
ewe.util.ByteArray
ewe.fx.ImageBytes
- All Implemented Interfaces:
- Copyable, Encodable
- public class ImageBytes
- extends ByteArray
This provides no more functionality than a ByteArray. Its sole purpose
is to allow for automatic creation of an ImageControl UI component
when creating Editors for objects. Any variable of type ImageBytes gets
an ImageControl created for it.
|
Method Summary |
Object |
getCopy()
This version of getCopy() returns a new ImageBytes object. |
mImage |
pngDecode()
This method will decode the Image that was perviously saved via pngEnocde(). |
void |
pngEncode(IImage image)
This method will save the Image as a PNG image into this ImageBytes object, erasing
any data that may have been in it. |
| Methods inherited from class ewe.util.ByteArray |
append, append, appendInt, appendInt, appendLong, clear, copyFrom, copyFrom, delete, insert, insertInt, insertLong, makeSpace, setLength, toBytes, write |
ImageBytes
public ImageBytes()
ImageBytes
public ImageBytes(byte[] data)
ImageBytes
public ImageBytes(IImage image)
getCopy
public Object getCopy()
- This version of getCopy() returns a new ImageBytes object.
- Specified by:
getCopy in interface Copyable- Overrides:
getCopy in class ByteArray
pngEncode
public void pngEncode(IImage image)
- This method will save the Image as a PNG image into this ImageBytes object, erasing
any data that may have been in it.
pngDecode
public mImage pngDecode()
- This method will decode the Image that was perviously saved via pngEnocde().