Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public class

BlurMaskFilter

extends MaskFilter
java.lang.Object
   ↳ android.graphics.MaskFilter
     ↳ android.graphics.BlurMaskFilter

Class Overview

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.
[Expand]
Inherited Methods
From class android.graphics.MaskFilter
From class java.lang.Object

Public Constructors

public BlurMaskFilter (float radius, BlurMaskFilter.Blur style)

Added in API level 1

Create a blur maskfilter.

Parameters
radius The radius to extend the blur from the original mask. Must be > 0.
style The Blur to use
Returns
  • The new blur maskfilter