|
PulpCore | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object pulpcore.image.filter.Filter pulpcore.image.filter.FilterChain
public class FilterChain
Constructor Summary | |
---|---|
FilterChain()
|
|
FilterChain(Filter filter)
|
|
FilterChain(Filter[] filters)
|
|
FilterChain(Filter filter1,
Filter filter2)
|
|
FilterChain(Filter filter1,
Filter filter2,
Filter filter3)
|
|
FilterChain(Filter filter1,
Filter filter2,
Filter filter3,
Filter filter4)
|
|
FilterChain(List filters)
|
Method Summary | |
---|---|
void |
add(Filter filter)
|
void |
add(int i,
Filter filter)
|
Filter |
copy()
Creates a copy of the Filter for another Sprite to use. |
protected void |
filter(CoreImage input,
CoreImage output)
Performs this filter on the input image onto the specified output image. |
Filter |
get(int i)
|
int |
getHeight()
Gets the height of the output of this filter. |
int |
getWidth()
Gets the width of the output of this filter. |
int |
getX()
Gets the x offset the output image should display relative to the input. |
int |
getY()
Gets the y offset the output image should display relative to the input. |
boolean |
isOpaque()
Returns true if the output of this filter is opaque. |
void |
remove(int i)
|
void |
set(int i,
Filter filter)
|
int |
size()
|
void |
update(int elapsedTime)
Updates the filter. |
Methods inherited from class pulpcore.image.filter.Filter |
---|
filter, getInput, getOutput, isDirty, setDirty, setInput |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FilterChain()
public FilterChain(Filter filter)
public FilterChain(Filter filter1, Filter filter2)
public FilterChain(Filter filter1, Filter filter2, Filter filter3)
public FilterChain(Filter filter1, Filter filter2, Filter filter3, Filter filter4)
public FilterChain(Filter[] filters)
public FilterChain(List filters)
Method Detail |
---|
public Filter get(int i)
public void add(Filter filter)
public void add(int i, Filter filter)
public void set(int i, Filter filter)
public void remove(int i)
public int size()
public int getX()
Filter
getX
in class Filter
public int getY()
Filter
getY
in class Filter
public int getWidth()
Filter
getWidth
in class Filter
public int getHeight()
Filter
getHeight
in class Filter
public boolean isOpaque()
Filter
isOpaque
in class Filter
public void update(int elapsedTime)
Filter
update
in class Filter
protected void filter(CoreImage input, CoreImage output)
Filter
This method is called from Filter.getOutput()
if Filter.isDirty()
returns true.
The output image will be the same dimensions as
(Filter.getWidth()
x Filter.getHeight()
. Implementors must ensure
that every pixel in output
is drawn.
filter
in class Filter
public Filter copy()
Filter
This method is used by the Sprite class. Most apps will not need to call this method.
Subclasses should bind all properties of the cloned object using bindWithInverse(). For example, for the HSBAdjust filter:
public Filter copy() { HSBAdjust copy = new HSBAdjust(); copy.hue.bindWithInverse(hue); copy.brightness.bindWithInverse(brightness); copy.saturation.bindWithInverse(saturation); return copy; }
copy
in class Filter
|
PulpCore | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |