public class GPUImageHalftoneFilter extends GPUImageFilter
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
HALFTONE_FRAGMENT_SHADER |
mGLAttribPosition, mGLAttribTextureCoordinate, mGLProgId, mGLUniformTexture, mOutputHeight, mOutputWidth, NO_FILTER_FRAGMENT_SHADER, NO_FILTER_VERTEX_SHADER| Constructor and Description |
|---|
GPUImageHalftoneFilter() |
GPUImageHalftoneFilter(float fractionalWidthOfAPixel) |
| Modifier and Type | Method and Description |
|---|---|
void |
onInit() |
void |
onOutputSizeChanged(int width,
int height) |
void |
setAspectRatio(float aspectRatio) |
void |
setFractionalWidthOfAPixel(float fractionalWidthOfAPixel) |
convertStreamToString, destroy, getAttribPosition, getAttribTextureCoordinate, getOutputHeight, getOutputWidth, getProgram, getUniformTexture, init, isInitialized, loadShader, onDestroy, onDraw, onDrawArraysPre, onInitialized, runOnDraw, runPendingOnDrawTasks, setFloat, setFloatArray, setFloatVec2, setFloatVec3, setFloatVec4, setInteger, setPoint, setUniformMatrix3f, setUniformMatrix4fpublic static final java.lang.String HALFTONE_FRAGMENT_SHADER
public GPUImageHalftoneFilter()
public GPUImageHalftoneFilter(float fractionalWidthOfAPixel)
public void onInit()
onInit in class GPUImageFilterpublic void onOutputSizeChanged(int width,
int height)
onOutputSizeChanged in class GPUImageFilterpublic void setFractionalWidthOfAPixel(float fractionalWidthOfAPixel)
public void setAspectRatio(float aspectRatio)