RadialGradient
public
class
RadialGradient
extends Shader
| java.lang.Object | ||
| ↳ | android.graphics.Shader | |
| ↳ | android.graphics.RadialGradient | |
Summary
Public constructors | |
|---|---|
RadialGradient(float centerX, float centerY, float radius, int[] colors, float[] stops, Shader.TileMode tileMode)
Create a shader that draws a radial gradient given the center and radius. |
|
RadialGradient(float centerX, float centerY, float radius, int centerColor, int edgeColor, Shader.TileMode tileMode)
Create a shader that draws a radial gradient given the center and radius. |
|
Inherited methods | |
|---|---|
android.graphics.Shader
| |
java.lang.Object
| |
Public constructors
RadialGradient
RadialGradient (float centerX,
float centerY,
float radius,
int[] colors,
float[] stops,
Shader.TileMode tileMode)
Create a shader that draws a radial gradient given the center and radius.
| Parameters | |
|---|---|
centerX |
float: The x-coordinate of the center of the radius |
centerY |
float: The y-coordinate of the center of the radius |
radius |
float: Must be positive. The radius of the circle for this gradient. |
colors |
int: The colors to be distributed between the center and edge of the circleThis value must never be |
stops |
float: May be null. Valid values are between 0.0f and
1.0f. The relative position of each corresponding color in
the colors array. If null, colors are distributed evenly
between the center and edge of the circle.This value may be |
tileMode |
Shader.TileMode: The Shader tiling mode
This value must never be |
RadialGradient
RadialGradient (float centerX,
float centerY,
float radius,
int centerColor,
int edgeColor,
Shader.TileMode tileMode)
Create a shader that draws a radial gradient given the center and radius.
| Parameters | |
|---|---|
centerX |
float: The x-coordinate of the center of the radius |
centerY |
float: The y-coordinate of the center of the radius |
radius |
float: Must be positive. The radius of the circle for this gradient |
centerColor |
int: The color at the center of the circle. |
edgeColor |
int: The color at the edge of the circle. |
tileMode |
Shader.TileMode: The Shader tiling mode
This value must never be |
Interfaces
Classes
- Bitmap
- BitmapFactory
- BitmapFactory.Options
- BitmapRegionDecoder
- BitmapShader
- BlurMaskFilter
- Camera
- Canvas
- Color
- ColorFilter
- ColorMatrix
- ColorMatrixColorFilter
- ColorSpace
- ColorSpace.Connector
- ColorSpace.Rgb
- ColorSpace.Rgb.TransferParameters
- ComposePathEffect
- ComposeShader
- CornerPathEffect
- DashPathEffect
- DiscretePathEffect
- DrawFilter
- EmbossMaskFilter
- ImageFormat
- Interpolator
- LightingColorFilter
- LinearGradient
- MaskFilter
- Matrix
- Movie
- NinePatch
- Outline
- Paint
- Paint.FontMetrics
- Paint.FontMetricsInt
- PaintFlagsDrawFilter
- Path
- PathDashPathEffect
- PathEffect
- PathMeasure
- Picture
- PixelFormat
- Point
- PointF
- PorterDuff
- PorterDuffColorFilter
- PorterDuffXfermode
- RadialGradient
- Rect
- RectF
- Region
- RegionIterator
- Shader
- SumPathEffect
- SurfaceTexture
- SweepGradient
- Typeface
- Typeface.Builder
- Xfermode
- YuvImage
Enums
- Bitmap.CompressFormat
- Bitmap.Config
- BlurMaskFilter.Blur
- Canvas.EdgeType
- Canvas.VertexMode
- ColorSpace.Adaptation
- ColorSpace.Model
- ColorSpace.Named
- ColorSpace.RenderIntent
- Interpolator.Result
- Matrix.ScaleToFit
- Paint.Align
- Paint.Cap
- Paint.Join
- Paint.Style
- Path.Direction
- Path.FillType
- Path.Op
- PathDashPathEffect.Style
- PorterDuff.Mode
- Region.Op
- Shader.TileMode
Exceptions