public static interface AbstractConfig.ImageFilterInterface extends DataSourceInterface<AbstractConfig.BindData>
| Modifier and Type | Method and Description |
|---|---|
void |
draw(Texture texture,
float[] mvpMatrix,
float[] stMatrix,
float aspectRatio)
Draw texture in OpenGl Context
|
boolean |
hasIntensityConfig()
Check if the Filter has Intensity Control
|
void |
release()
Release the shader program and texture
|
android.graphics.Bitmap |
renderImage(android.graphics.Bitmap bitmap)
Apply the renderscript filter without intensity changes.
|
android.graphics.Bitmap |
renderImage(android.graphics.Bitmap bitmap,
float intensity)
Apply the renderscript filter with a specific intensity.
|
createViewHolder, generateBindData, generateBindDataAsync, getLayout, getName, getVerticalLayout, isSelectable@Nullable android.graphics.Bitmap renderImage(android.graphics.Bitmap bitmap)
bitmap - the source image.@Nullable
android.graphics.Bitmap renderImage(android.graphics.Bitmap bitmap,
float intensity)
bitmap - the source image.intensity - the filter intensityvoid release()
void draw(Texture texture, float[] mvpMatrix, float[] stMatrix, float aspectRatio)
texture - the camera preview texturemvpMatrix - the camera source matrixstMatrix - the stage destination matrixaspectRatio - the camera image aspectboolean hasIntensityConfig()