Skip to content

Most visited

Recently visited

navigation

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

From class android.graphics.MaskFilter
From class java.lang.Object

Public constructors

BlurMaskFilter

added in API level 1
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

This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Follow Google Developers on WeChat

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience.
(Sep 2017 survey)