project.android.imageprocessing.filter.processing
Class LanczosResamplingFilter
java.lang.Object
project.android.imageprocessing.GLRenderer
project.android.imageprocessing.input.GLTextureOutputRenderer
project.android.imageprocessing.filter.BasicFilter
project.android.imageprocessing.filter.GroupFilter
project.android.imageprocessing.filter.processing.LanczosResamplingFilter
- All Implemented Interfaces:
- GLTextureInputRenderer
public class LanczosResamplingFilter
- extends GroupFilter
This lets you up- or downsample an image using Lanczos resampling, which results in noticeably better quality than the standard linear or trilinear interpolation. Set the width and height, and the image will be resampled for that new size.
- Author:
- Chris Batt
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 |
LanczosResamplingFilter
public LanczosResamplingFilter(int width,
int height)
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 GroupFilter
- Parameters:
texture
- The texture id to be used as input.source
- The GLTextureOutputRenderer which produced the texture.