|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.flagstone.transform.image.DefineJPEGImage4
public final class DefineJPEGImage4
DefineJPEGImage4 extends the functionality of DefineJPEGImage3 by specifying the parameter that controls the deblocking filter that is used to decode the image data.
| Constructor Summary | |
|---|---|
DefineJPEGImage4(DefineJPEGImage4 object)
Creates and initialises a DefineJPEGImage3 object using the values copied from another DefineJPEGImage3 object. |
|
DefineJPEGImage4(int uid,
float level,
byte[] img,
byte[] transparency)
Creates a DefineJPEGImage4 object with the specified deblocking, image data, and alpha channel data. |
|
DefineJPEGImage4(SWFDecoder coder)
Creates and initialises a DefineJPEGImage4 object using values encoded in the Flash binary format. |
|
| Method Summary | |
|---|---|
DefineJPEGImage4 |
copy()
Creates a complete copy of this object. |
void |
encode(SWFEncoder coder,
Context context)
Encode an object to the Flash binary format. |
byte[] |
getAlpha()
Get the alpha channel data. |
float |
getDeblocking()
Get the value used by the deblocking filter. |
int |
getHeight()
Get the height of the image in pixels (not twips). |
int |
getIdentifier()
Get the unique identifier assigned to this object. |
byte[] |
getImage()
Get a copy of the image. |
int |
getWidth()
Get the width of the image in pixels (not twips). |
int |
prepareToEncode(Context context)
Prepare an object for encoding, returning the expected size of an object when it is encoded. |
void |
setAlpha(byte[] bytes)
Sets the alpha channel data with the zlib compressed data. |
void |
setDeblocking(float level)
Set the value used by the deblocking filter. |
void |
setIdentifier(int uid)
Sets the unique identifier for an object within a given Movie. |
void |
setImage(byte[] bytes)
Sets the image data. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefineJPEGImage4(SWFDecoder coder)
throws IOException
coder - an SWFDecoder object that contains the encoded Flash data.
IOException - if an error occurs while decoding the data.
public DefineJPEGImage4(int uid,
float level,
byte[] img,
byte[] transparency)
uid - the unique identifier for this object. Must be in the range
1..65535.level - the level of deblocking used for the image.img - the JPEG encoded image data. Must not be null.transparency - byte array containing the zlib compressed alpha channel data.
Must not be null.public DefineJPEGImage4(DefineJPEGImage4 object)
object - a DefineJPEGImage3 object from which the values will be
copied.| Method Detail |
|---|
public int getIdentifier()
getIdentifier in interface DefineTagpublic void setIdentifier(int uid)
setIdentifier in interface DefineTaguid - a unique identifier for the object. Must be in the range
1..65535.public float getDeblocking()
public void setDeblocking(float level)
level - the deblocking value in the range 0..100.public int getWidth()
getWidth in interface ImageTagpublic int getHeight()
getHeight in interface ImageTagpublic byte[] getImage()
public byte[] getAlpha()
public void setImage(byte[] bytes)
bytes - a list of bytes containing the image table. Must not be
null.public void setAlpha(byte[] bytes)
bytes - array of bytes containing zlib encoded alpha channel. Must not
be null.public DefineJPEGImage4 copy()
copy in interface Copyable<MovieTag>public String toString()
toString in class Objectpublic int prepareToEncode(Context context)
prepareToEncode in interface SWFEncodeablecontext - an Context that allows information to be passed between
objects to control how they are initialised for encoding.
public void encode(SWFEncoder coder,
Context context)
throws IOException
encode in interface SWFEncodeablecoder - an SWFEncoder object.context - an Context that allows information to be passed between
objects to control how they are initialised for encoding.
IOException - if an error occurs while encoding the object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||