Added in API level 1
BlurMaskFilter
public
class
BlurMaskFilter
extends MaskFilter
| java.lang.Object | ||
| ↳ | android.graphics.MaskFilter | |
| ↳ | android.graphics.BlurMaskFilter | |
This takes a mask, and blurs its edge by the specified radius. Whether or or not to include the original mask, and whether the blur goes outside, inside, or straddles, the original mask's border, is controlled by the Blur enum.
Summary
Nested classes | |
|---|---|
enum |
BlurMaskFilter.Blur
|
Public constructors | |
|---|---|
BlurMaskFilter(float radius, BlurMaskFilter.Blur style)
Create a blur maskfilter. |
|
Inherited methods | |
|---|---|
Public constructors
BlurMaskFilter
Added in API level 1
public BlurMaskFilter (float radius,
BlurMaskFilter.Blur style)
Create a blur maskfilter.
| Parameters | |
|---|---|
radius |
float: The radius to extend the blur from the original mask. Must be > 0. |
style |
BlurMaskFilter.Blur: The Blur to use |
| Returns | |
|---|---|
|
The new blur maskfilter |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2022-02-10 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]