Shader.TileMode| 限定符和类型 | 字段 | 说明 |
|---|---|---|
float[] |
stops |
Indicates the positions corresponding the shading colors in the
Shader#shaderColors array. |
intColors, mTileMode, shaderColors| 构造器 | 说明 |
|---|---|
RadialShader() |
Default constructor used to create a
RadialShader. |
RadialShader(Point newPoint,
float newRadius,
float[] newStops,
Color[] newColors,
Shader.TileMode newTileMode) |
A constructor used to create a
RadialShader based on the specified center point, radius, colors,
and tile mode. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
protected Point |
getShaderPoint() |
Obtains the coordinate of the center point of a
RadialShader. |
protected float |
getShaderRadius() |
Obtains the radius of a
RadialShader. |
protected float[] |
getShaderStops() |
Obtains the positions corresponding to the shading colors in the
Shader#shaderColors array of
a radial shader. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetShaderColors, getTileMode, setShaderMatrixpublic float[] stops
Shader#shaderColors array.
Color stops values monotonically increase from 0 to 1.0. If the stops parameter is null,
the colors will be evenly shaded.
public RadialShader()
RadialShader.
Calling this constructor will automatically invoke
RadialShader#RadialShader(Point, float, float[], Color[], TileMode) to create a radial shader.
public RadialShader(Point newPoint, float newRadius, float[] newStops, Color[] newColors, Shader.TileMode newTileMode)
RadialShader based on the specified center point, radius, colors,
and tile mode.newPoint - Indicates the coordinate of the center point of the radial shader.newRadius - Indicates the radius of the radial shader.newStops - Indicates the positions corresponding to the colors in newColors. This parameter
can be null.newColors - Indicates the array of radial shading colors.newTileMode - Indicates the tile mode used to shade colors when the drawn object exceeds the shading
area defined by the radial shader.protected Point getShaderPoint()
RadialShader.RadialShader.protected float getShaderRadius()
RadialShader.RadialShader.protected float[] getShaderStops()
Shader#shaderColors array of
a radial shader.Shader#shaderColors array.