public final class RenderScriptBlur extends java.lang.Object implements BlurAlgorithm
| Constructor and Description |
|---|
RenderScriptBlur(android.content.Context context) |
| Modifier and Type | Method and Description |
|---|---|
android.graphics.Bitmap |
blur(android.graphics.Bitmap bitmap,
float blurRadius) |
boolean |
canModifyBitmap() |
void |
destroy()
Frees allocated resources
|
android.graphics.Bitmap.Config |
getSupportedBitmapConfig()
Retrieve the
Bitmap.Config on which the BlurAlgorithm
can actually work. |
public RenderScriptBlur(android.content.Context context)
context - Context to create the RenderScriptpublic final android.graphics.Bitmap blur(android.graphics.Bitmap bitmap,
float blurRadius)
blur in interface BlurAlgorithmbitmap - bitmap to blurblurRadius - blur radius (1..25)public final void destroy()
BlurAlgorithmdestroy in interface BlurAlgorithmpublic boolean canModifyBitmap()
canModifyBitmap in interface BlurAlgorithm@NonNull public android.graphics.Bitmap.Config getSupportedBitmapConfig()
BlurAlgorithmBitmap.Config on which the BlurAlgorithm
can actually work.getSupportedBitmapConfig in interface BlurAlgorithm