public class BlurDrawLooper extends Object
Paint.
This class stores shadow attributes, including the shadow radius, shadow offset against the drawn object in the horizontal and vertical directions, and shadow color.
This class acts as an attribute of Paint. For
details, see Paint#setBlurDrawLooper.
| 限定符和类型 | 字段 | 说明 |
|---|---|---|
int |
intColor |
Indicates an integer representing the color of this
BlurDrawLooper. |
float |
offsetX |
Indicates the horizontal shadow offset against the drawn object.
|
float |
offsetY |
Indicates the vertical shadow offset against the drawn object.
|
float |
shadowRadius |
Indicates the radius of this
BlurDrawLooper. |
| 构造器 | 说明 |
|---|---|
BlurDrawLooper(float radius,
float offsetX,
float offsetY,
Color color) |
A constructor used to create a
BlurDrawLooper instance of a specified style. |
public final int intColor
BlurDrawLooper. The default value is 0.public final float offsetX
public final float offsetY
public final float shadowRadius
BlurDrawLooper.
The initial shadow radius is 0, indicating that the object is drawn with no shadow.
public BlurDrawLooper(float radius,
float offsetX,
float offsetY,
Color color)
BlurDrawLooper instance of a specified style.radius - Indicates the shadow radius.offsetX - Indicates the horizontal shadow offset against the drawn object.offsetY - Indicates the vertical shadow offset against the drawn object.color - Indicates the shadow color.