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
|
Allocation |
renderImage(Allocation allocation,
float intensity,
boolean previewMode)
Apply the renderscript filter with a specific intensity.
|
android.graphics.Bitmap |
renderImage(android.graphics.Bitmap bitmap,
float intensity,
boolean previewMode)
Apply the renderscript filter with a specific intensity.
|
createViewHolder, generateBindData, generateBindDataAsync, getLayout, getName, getVerticalLayout, isDirty, isSelectable, setDirtyFlag@Nullable
android.graphics.Bitmap renderImage(android.graphics.Bitmap bitmap,
float intensity,
boolean previewMode)
bitmap - the source image.intensity - the filter intensitypreviewMode - set true to render a faster preview@Nullable
Allocation renderImage(Allocation allocation,
float intensity,
boolean previewMode)
allocation - the source image allocation (RGBA_8888).intensity - the filter intensitypreviewMode - set true to render a faster previewvoid 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()