| java.lang.Object | |
| ↳ | greendroid.image.MaskImageProcessor |
An ImageProcessor that masks the given Bitmap according to a shape or
another Bitmap.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Create a new MaskImageProcessor using the specified Bitmap as mask. | |||||||||||
Create a new MaskImageProcessor using a simple rectangle as mask.
| |||||||||||
Create a new MaskImageProcessor using a simple rectangle as mask. | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Called whenever the bitmap need to be processed.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
greendroid.image.ImageProcessor
| |||||||||||
Create a new MaskImageProcessor using the specified Bitmap as mask.
| maskBitmap | The Bitmap used for masking |
|---|
Create a new MaskImageProcessor using a simple rectangle as mask. Specifying a radius > 0, enable clients to use a rounded rectangle, rather than a rectangle.
| radius | The radius for the corners of the rectangle. |
|---|
Create a new MaskImageProcessor using a simple rectangle as mask. Specifying a radius > 0, enable clients to use a rounded rectangle, rather than a rectangle.
Specify radii for each of the 4 corners. For each corner, the array contains 2 values, [X_radius, Y_radius]. The corners are ordered top-left, top-right, bottom-right, bottom-left
| radii | The radii for the corners of the rectangle |
|---|
Called whenever the bitmap need to be processed. The returned may have been modified or completely different.
| bitmap | The Bitmap to process |
|---|