|
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.Thermal
public final class Thermal
A false-color filter that mocks a Thermal view filter.
This filter is done by grayscaling the image and applying false colors. Colors originally from white->black are changed into a full RGB spectrum color.
Constructor Summary | |
---|---|
Thermal()
|
Method Summary | |
---|---|
Filter |
copy()
Creates a copy of the Filter for another Sprite to use. |
protected void |
filter(CoreImage src,
CoreImage dst)
Performs this filter on the input image onto the specified output image. |
Methods inherited from class pulpcore.image.filter.Filter |
---|
filter, getHeight, getInput, getOutput, getWidth, getX, getY, isDirty, isOpaque, setDirty, setInput, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Thermal()
Method Detail |
---|
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
protected void filter(CoreImage src, CoreImage dst)
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
|
PulpCore | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |