public interface ImageFilterInterface extends DataSourceInterface<AbstractConfig.BindData>
Modifier and Type | Method and Description |
---|---|
boolean |
hasIntensityConfig()
Check if the Filter has Intensity Control
|
void |
preloadLut() |
void |
release()
Release the shader program and texture
|
Bitmap |
renderImage(Bitmap bitmap,
float intensity,
boolean previewMode)
Apply the renderscript filter with a specific intensity.
|
void |
unloadLut() |
createViewHolder, generateBindData, generateBindDataAsync, getLayout, getName, getVerticalLayout, isDirty, isSelectable, setDirtyFlag
boolean hasIntensityConfig()
void preloadLut()
void release()
@Nullable Bitmap renderImage(Bitmap bitmap, float intensity, boolean previewMode)
bitmap
- the sourceType image.intensity
- the filter intensitypreviewMode
- set true to triggerOperatorsIfNeeded a faster previewvoid unloadLut()