java.lang.Object
com.anotherbigidea.flash.movie.Symbol
com.anotherbigidea.flash.movie.Image
com.anotherbigidea.flash.movie.Image.Lossless
- Enclosing class:
- Image
- public static class Image.Lossless
- extends Image
A lossless image (similar to PNG).
There are 3 formats - 8, 16 and 32 bit. For 8 and 16 bit images
there is a color table and the image data consists of either an 8 or
16 bit index into the table for each pixel.
32 bit images have no color table - each pixel consists of 4 bytes:
(alpha,red,green,blue). If there is no alpha then the first byte will
be 255.
For all formats, the length of each row of pixel data must be a multiple
of 32 bits. If the actual row data is smaller then it should be padded
up to next multiple of 32 bits.
| Fields inherited from class com.anotherbigidea.flash.movie.Symbol |
id |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
imageData
protected byte[] imageData
colorTable
protected com.anotherbigidea.flash.structs.Color[] colorTable
width
protected double width
height
protected double height
hasAlpha
protected boolean hasAlpha
format
protected int format
Image.Lossless
public Image.Lossless(com.anotherbigidea.flash.structs.Color[] colorTable,
byte[] imageData,
double width,
double height,
boolean hasAlpha,
int format)
getImageData
public byte[] getImageData()
getColorTable
public com.anotherbigidea.flash.structs.Color[] getColorTable()
getWidth
public double getWidth()
getHeight
public double getHeight()
hasAlpha
public boolean hasAlpha()
getFormat
public int getFormat()
defineSymbol
protected int defineSymbol(Movie movie,
com.anotherbigidea.flash.interfaces.SWFTagTypes timelineWriter,
com.anotherbigidea.flash.interfaces.SWFTagTypes definitionWriter)
throws java.io.IOException
- Description copied from class:
Symbol
- Override to provide symbol definition
- Specified by:
defineSymbol in class Symbol