public class GPUImageBulgeDistortionFilter extends GPUImageFilter
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BULGE_FRAGMENT_SHADER |
NO_FILTER_FRAGMENT_SHADER, NO_FILTER_VERTEX_SHADER| Constructor and Description |
|---|
GPUImageBulgeDistortionFilter() |
GPUImageBulgeDistortionFilter(float radius,
float scale,
android.graphics.PointF center) |
| Modifier and Type | Method and Description |
|---|---|
void |
onInit() |
void |
onInitialized() |
void |
onOutputSizeChanged(int width,
int height) |
void |
setCenter(android.graphics.PointF center)
The center about which to apply the distortion, with a default of (0.5, 0.5)
|
void |
setRadius(float radius)
The radius of the distortion, ranging from 0.0 to 1.0, with a default of 0.25
|
void |
setScale(float scale)
The amount of distortion to apply, from -1.0 to 1.0, with a default of 0.5
|
convertStreamToString, destroy, getAttribPosition, getAttribTextureCoordinate, getOutputHeight, getOutputWidth, getProgram, getUniformTexture, ifNeedInit, isInitialized, loadShader, onDestroy, onDraw, onDrawArraysPre, runOnDraw, runPendingOnDrawTasks, setFloat, setFloatArray, setFloatVec2, setFloatVec3, setFloatVec4, setInteger, setPoint, setUniformMatrix3f, setUniformMatrix4fpublic static final java.lang.String BULGE_FRAGMENT_SHADER
public GPUImageBulgeDistortionFilter()
public GPUImageBulgeDistortionFilter(float radius,
float scale,
android.graphics.PointF center)
public void onInit()
onInit in class GPUImageFilterpublic void onInitialized()
onInitialized in class GPUImageFilterpublic void onOutputSizeChanged(int width,
int height)
onOutputSizeChanged in class GPUImageFilterpublic void setRadius(float radius)
radius - from 0.0 to 1.0, default 0.25public void setScale(float scale)
scale - from -1.0 to 1.0, default 0.5public void setCenter(android.graphics.PointF center)
center - default (0.5, 0.5)