project.android.imageprocessing.filter.processing
Class TiltShiftFilter
java.lang.Object
project.android.imageprocessing.GLRenderer
project.android.imageprocessing.input.GLTextureOutputRenderer
project.android.imageprocessing.filter.BasicFilter
project.android.imageprocessing.filter.MultiInputFilter
project.android.imageprocessing.filter.CompositeFilter
project.android.imageprocessing.filter.processing.TiltShiftFilter
- All Implemented Interfaces:
- GLTextureInputRenderer
public class TiltShiftFilter
- extends CompositeFilter
A simulated tilt shift lens effect
blurSize: A multiplier for the size of the out-of-focus blur, ranging from 0.0 on up
topFocusLevel: The normalized location of the top of the in-focus area in the image, this value should be lower than bottomFocusLevel
bottomFocusLevel: The normalized location of the bottom of the in-focus area in the image, this value should be higher than topFocusLevel
focusFallOffRate: The rate at which the image gets blurry away from the in-focus region
- Author:
- Chris Batt
Constructor Summary |
TiltShiftFilter(float blurSize,
float topFocusLevel,
float bottomFocusLevel,
float focusFallOffRate)
|
Methods inherited from class project.android.imageprocessing.GLRenderer |
getBackgroundAlpha, getBackgroundBlue, getBackgroundGreen, getBackgroundRed, getHeight, getWidth, onDrawFrame, reInitialize, rotateClockwise90Degrees, rotateCounterClockwise90Degrees, setBackgroundAlpha, setBackgroundBlue, setBackgroundColour, setBackgroundGreen, setBackgroundRed |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TiltShiftFilter
public TiltShiftFilter(float blurSize,
float topFocusLevel,
float bottomFocusLevel,
float focusFallOffRate)
newTextureReady
public void newTextureReady(int texture,
GLTextureOutputRenderer source)
- Description copied from interface:
GLTextureInputRenderer
- Signals that a new texture is available and the image should be reprocessed.
- Specified by:
newTextureReady
in interface GLTextureInputRenderer
- Overrides:
newTextureReady
in class CompositeFilter
- Parameters:
texture
- The texture id to be used as input.source
- The GLTextureOutputRenderer which produced the texture.