public interface BlurAlgorithm
| 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. |
android.graphics.Bitmap blur(android.graphics.Bitmap bitmap,
float blurRadius)
bitmap - bitmap to be blurredblurRadius - blur radiusvoid destroy()
boolean canModifyBitmap()
If you return false from this method, you'll be responsible to swap bitmaps in your
blur(Bitmap, float) implementation
(assign input bitmap to your field and return the instance algorithm just blurred).
android.graphics.Bitmap.Config getSupportedBitmapConfig()
Bitmap.Config on which the BlurAlgorithm
can actually work.