RadialGradient Constructors

Definition

Overloads

RadialGradient(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

RadialGradient(Single, Single, Single, Color, Color, Shader+TileMode)

Create a shader that draws a radial gradient given the start and end points as well as starting and ending radii.

RadialGradient(Single, Single, Single, Int32[], Single[], Shader+TileMode)

Create a shader that draws a radial gradient given the start and end points as well as starting and ending radii.

RadialGradient(Single, Single, Single, Int64, Int64, Shader+TileMode)

Create a shader that draws a radial gradient given the start and end points as well as starting and ending radii.

RadialGradient(Single, Single, Single, Int64[], Single[], Shader+TileMode)

Create a shader that draws a radial gradient given the start and end points as well as starting and ending radii.

RadialGradient(Single, Single, Single, Single, Single, Single, Int64[], Single[], Shader+TileMode)

Create a shader that draws a radial gradient given the start and end points as well as starting and ending radii.

RadialGradient(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected RadialGradient (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Graphics.RadialGradient : nativeint * Android.Runtime.JniHandleOwnership -> Android.Graphics.RadialGradient

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

RadialGradient(Single, Single, Single, Color, Color, Shader+TileMode)

Create a shader that draws a radial gradient given the start and end points as well as starting and ending radii.

[Android.Runtime.Register(".ctor", "(FFFIILandroid/graphics/Shader$TileMode;)V", "")]
public RadialGradient (float centerX, float centerY, float radius, Android.Graphics.Color centerColor, Android.Graphics.Color edgeColor, Android.Graphics.Shader.TileMode tileMode);
[<Android.Runtime.Register(".ctor", "(FFFIILandroid/graphics/Shader$TileMode;)V", "")>]
new Android.Graphics.RadialGradient : single * single * single * Android.Graphics.Color * Android.Graphics.Color * Android.Graphics.Shader.TileMode -> Android.Graphics.RadialGradient

Parameters

centerX
Single
centerY
Single
radius
Single
centerColor
Color
edgeColor
Color
tileMode
Shader.TileMode

The Shader tiling mode

Attributes

Remarks

Java documentation for android.graphics.RadialGradient.RadialGradient(float, float, float, float, float, float, long[], float[], android.graphics.TileMode).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

RadialGradient(Single, Single, Single, Int32[], Single[], Shader+TileMode)

Create a shader that draws a radial gradient given the start and end points as well as starting and ending radii.

[Android.Runtime.Register(".ctor", "(FFF[I[FLandroid/graphics/Shader$TileMode;)V", "")]
public RadialGradient (float centerX, float centerY, float radius, int[] colors, float[]? stops, Android.Graphics.Shader.TileMode tileMode);
[<Android.Runtime.Register(".ctor", "(FFF[I[FLandroid/graphics/Shader$TileMode;)V", "")>]
new Android.Graphics.RadialGradient : single * single * single * int[] * single[] * Android.Graphics.Shader.TileMode -> Android.Graphics.RadialGradient

Parameters

centerX
Single
centerY
Single
radius
Single
colors
Int32[]

The colors to be distributed between the center and edge of the circle

stops
Single[]

May be <code>null</code>. Valid values are between <code>0.0f</code> and <code>1.0f</code>. The relative position of each corresponding color in the colors array. If <code>null</code>, colors are distributed evenly between the center and edge of the circle.

tileMode
Shader.TileMode

The Shader tiling mode

Attributes

Remarks

Java documentation for android.graphics.RadialGradient.RadialGradient(float, float, float, float, float, float, long[], float[], android.graphics.TileMode).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

RadialGradient(Single, Single, Single, Int64, Int64, Shader+TileMode)

Create a shader that draws a radial gradient given the start and end points as well as starting and ending radii.

[Android.Runtime.Register(".ctor", "(FFFJJLandroid/graphics/Shader$TileMode;)V", "", ApiSince=29)]
public RadialGradient (float centerX, float centerY, float radius, long centerColor, long edgeColor, Android.Graphics.Shader.TileMode tileMode);
[<Android.Runtime.Register(".ctor", "(FFFJJLandroid/graphics/Shader$TileMode;)V", "", ApiSince=29)>]
new Android.Graphics.RadialGradient : single * single * single * int64 * int64 * Android.Graphics.Shader.TileMode -> Android.Graphics.RadialGradient

Parameters

centerX
Single
centerY
Single
radius
Single
centerColor
Int64
edgeColor
Int64
tileMode
Shader.TileMode

The Shader tiling mode

Attributes

Remarks

Java documentation for android.graphics.RadialGradient.RadialGradient(float, float, float, float, float, float, long[], float[], android.graphics.TileMode).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

RadialGradient(Single, Single, Single, Int64[], Single[], Shader+TileMode)

Create a shader that draws a radial gradient given the start and end points as well as starting and ending radii.

[Android.Runtime.Register(".ctor", "(FFF[J[FLandroid/graphics/Shader$TileMode;)V", "", ApiSince=29)]
public RadialGradient (float centerX, float centerY, float radius, long[] colors, float[]? stops, Android.Graphics.Shader.TileMode tileMode);
[<Android.Runtime.Register(".ctor", "(FFF[J[FLandroid/graphics/Shader$TileMode;)V", "", ApiSince=29)>]
new Android.Graphics.RadialGradient : single * single * single * int64[] * single[] * Android.Graphics.Shader.TileMode -> Android.Graphics.RadialGradient

Parameters

centerX
Single
centerY
Single
radius
Single
colors
Int64[]

The colors to be distributed between the center and edge of the circle

stops
Single[]

May be <code>null</code>. Valid values are between <code>0.0f</code> and <code>1.0f</code>. The relative position of each corresponding color in the colors array. If <code>null</code>, colors are distributed evenly between the center and edge of the circle.

tileMode
Shader.TileMode

The Shader tiling mode

Attributes

Remarks

Java documentation for android.graphics.RadialGradient.RadialGradient(float, float, float, float, float, float, long[], float[], android.graphics.TileMode).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

RadialGradient(Single, Single, Single, Single, Single, Single, Int64[], Single[], Shader+TileMode)

Create a shader that draws a radial gradient given the start and end points as well as starting and ending radii.

[Android.Runtime.Register(".ctor", "(FFFFFF[J[FLandroid/graphics/Shader$TileMode;)V", "", ApiSince=31)]
public RadialGradient (float startX, float startY, float startRadius, float endX, float endY, float endRadius, long[] colors, float[]? stops, Android.Graphics.Shader.TileMode tileMode);
[<Android.Runtime.Register(".ctor", "(FFFFFF[J[FLandroid/graphics/Shader$TileMode;)V", "", ApiSince=31)>]
new Android.Graphics.RadialGradient : single * single * single * single * single * single * int64[] * single[] * Android.Graphics.Shader.TileMode -> Android.Graphics.RadialGradient

Parameters

startX
Single

The x-coordinate of the center of the starting circle of the radial gradient, often referred to as the focal point.

startY
Single

The y-coordinate of the center of the starting circle of the radial gradient, often referred to as the focal point.

startRadius
Single

The radius of the starting circle of the radial gradient, often referred to as the focal radius. Must be greater than or equal to zero.

endX
Single

The x-coordinate of the center of the radius for the end circle of the radial gradient

endY
Single

The y-coordinate of the center of the radius for the end circle of the radial gradient

endRadius
Single

The radius of the ending circle for this gradient. This must be strictly greater than zero. A radius value equal to zero is not allowed.

colors
Int64[]

The colors to be distributed between the center and edge of the circle

stops
Single[]

May be <code>null</code>. Valid values are between <code>0.0f</code> and <code>1.0f</code>. The relative position of each corresponding color in the colors array. If <code>null</code>, colors are distributed evenly between the center and edge of the circle.

tileMode
Shader.TileMode

The Shader tiling mode

Attributes

Remarks

Java documentation for android.graphics.RadialGradient.RadialGradient(float, float, float, float, float, float, long[], float[], android.graphics.TileMode).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to