|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.flagstone.transform.filter.ConvolutionFilter
public final class ConvolutionFilter
ConvolutionFilter is used to apply a two-dimensional discrete convolution on the pixels of the object on the display list.
Nested Class Summary | |
---|---|
static class |
ConvolutionFilter.Builder
Builder for creating ConvolutionFilter objects. |
Constructor Summary | |
---|---|
ConvolutionFilter(ConvolutionFilter.Builder builder)
Create a new ConvolutionFilter object using the parameters defined in the Builder. |
|
ConvolutionFilter(SWFDecoder coder,
Context context)
Creates and initialises a ConvolutionFilter object using values encoded in the Flash binary format. |
Method Summary | |
---|---|
void |
encode(SWFEncoder coder,
Context context)
Encode an object to the Flash binary format. |
boolean |
equals(Object object)
|
float |
getBias()
Get the bias for the convolution equation. |
Color |
getColor()
Get the default colour used for pixel outside the display object. |
float |
getDivisor()
Get the divisor for the convolution equation. |
float[][] |
getMatrix()
Get a copy of the convolution matrix. |
int |
hashCode()
|
boolean |
isAlpha()
Is the alpha value of the pixels in the display list object preserved in the output of the convolution. |
boolean |
isClamp()
Are outside pixels clamped to the nearest inside one (true) or to the default colour (false). |
int |
prepareToEncode(Context context)
Prepare an object for encoding, returning the expected size of an object when it is encoded. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ConvolutionFilter(ConvolutionFilter.Builder builder)
builder
- a Builder containing the parameters for the instance.public ConvolutionFilter(SWFDecoder coder, Context context) throws IOException
coder
- an SWFDecoder object that contains the encoded Flash data.context
- a Context object used to manage the decoders for different
type of object and to pass information on how objects are
decoded.
IOException
- if an error occurs while decoding the data.Method Detail |
---|
public float getDivisor()
public float getBias()
public float[][] getMatrix()
public Color getColor()
public boolean isClamp()
public boolean isAlpha()
public String toString()
toString
in class Object
public boolean equals(Object object)
equals
in class Object
public int hashCode()
hashCode
in class Object
public int prepareToEncode(Context context)
prepareToEncode
in interface SWFEncodeable
context
- 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 SWFEncodeable
coder
- 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 |