public class MaskFilter extends Object
This class enables you to create a blur or an emboss mask filter.
| 限定符和类型 | 类 | 说明 |
|---|---|---|
static class |
MaskFilter.Blur |
Enumerates blur styles for a
MaskFilter instance. |
| 构造器 | 说明 |
|---|---|
MaskFilter(byte[] table) |
A constructor used to create a table
MaskFilter instance. |
MaskFilter(float[] direction,
float ambient,
float specular,
float blurRadius) |
A constructor used to create an emboss
MaskFilter instance based on the specified direction, ambient
intensity, coefficient and radius of the light. |
MaskFilter(float radius,
MaskFilter.Blur style) |
A constructor used to create a blur
MaskFilter instance based on the specified radius and style. |
public MaskFilter(float radius,
MaskFilter.Blur style)
MaskFilter instance based on the specified radius and style.radius - Indicates the radius of the circle defining the area to blur.style - Indicates the blur style to use. For details about available values, see Blur.public MaskFilter(float[] direction,
float ambient,
float specular,
float blurRadius)
MaskFilter instance based on the specified direction, ambient
intensity, coefficient and radius of the light.direction - Indicates the direction of the light source.ambient - Indicates the intensity of ambient light.specular - Indicates the coefficient for specular highlights.blurRadius - Indicates the scope to blur before applying light.public MaskFilter(byte[] table)
MaskFilter instance.table - Indicates the table.