|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpt.tumba.parser.swf.Symbol
pt.tumba.parser.swf.Image
pt.tumba.parser.swf.Image.Lossless
public static class Image.Lossless
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.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class pt.tumba.parser.swf.Image |
|---|
Image.JPEG, Image.Lossless |
| Field Summary | |
|---|---|
protected Color[] |
colorTable
Description of the Field |
protected int |
format
Description of the Field |
protected boolean |
hasAlpha
Description of the Field |
protected double |
height
Description of the Field |
protected byte[] |
imageData
Description of the Field |
protected double |
width
Description of the Field |
| Fields inherited from class pt.tumba.parser.swf.Symbol |
|---|
id |
| Constructor Summary | |
|---|---|
Image.Lossless(Color[] colorTable,
byte[] imageData,
double width,
double height,
boolean hasAlpha,
int format)
|
|
| Method Summary | |
|---|---|
protected int |
defineSymbol(Movie movie,
SWFTagTypes timelineWriter,
SWFTagTypes definitionWriter)
Description of the Method |
Color[] |
getColorTable()
Gets the colorTable attribute of the Lossless object |
int |
getFormat()
Gets the format attribute of the Lossless object |
double |
getHeight()
Gets the height attribute of the Lossless object |
byte[] |
getImageData()
Gets the imageData attribute of the Lossless object |
double |
getWidth()
Gets the width attribute of the Lossless object |
boolean |
hasAlpha()
Description of the Method |
| Methods inherited from class pt.tumba.parser.swf.Symbol |
|---|
define, getId, getNextId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected byte[] imageData
protected Color[] colorTable
protected double width
protected double height
protected boolean hasAlpha
protected int format
| Constructor Detail |
|---|
public Image.Lossless(Color[] colorTable,
byte[] imageData,
double width,
double height,
boolean hasAlpha,
int format)
colorTable - may be null for 32 bit bitmapsimageData - the pixel datawidth - in pixelsheight - in pixelshasAlpha - whether the image contains alpha valuesformat - one of: SWFConstants.BITMAP_FORMAT_8_BIT,
SWFConstants.BITMAP_FORMAT_16_BIT,
SWFConstants.BITMAP_FORMAT_32_BIT| Method Detail |
|---|
public byte[] getImageData()
public Color[] getColorTable()
public double getWidth()
public double getHeight()
public boolean hasAlpha()
public int getFormat()
protected int defineSymbol(Movie movie,
SWFTagTypes timelineWriter,
SWFTagTypes definitionWriter)
throws java.io.IOException
defineSymbol in class Symbolmovie - Description of the ParametertimelineWriter - Description of the ParameterdefinitionWriter - Description of the Parameter
java.io.IOException - Description of the Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||