Share via


SweepGradient Constructors

Definition

Overloads

SweepGradient(IntPtr, JniHandleOwnership)

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

SweepGradient(Single, Single, Color, Color)

A Shader that draws a sweep gradient around a center point.

SweepGradient(Single, Single, Int32[], Single[])

A Shader that draws a sweep gradient around a center point.

SweepGradient(Single, Single, Int64, Int64)

A Shader that draws a sweep gradient around a center point.

SweepGradient(Single, Single, Int64[], Single[])

A Shader that draws a sweep gradient around a center point.

SweepGradient(IntPtr, JniHandleOwnership)

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

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

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

SweepGradient(Single, Single, Color, Color)

A Shader that draws a sweep gradient around a center point.

[Android.Runtime.Register(".ctor", "(FFII)V", "")]
public SweepGradient (float cx, float cy, Android.Graphics.Color color0, Android.Graphics.Color color1);
[<Android.Runtime.Register(".ctor", "(FFII)V", "")>]
new Android.Graphics.SweepGradient : single * single * Android.Graphics.Color * Android.Graphics.Color -> Android.Graphics.SweepGradient

Parameters

cx
Single

The x-coordinate of the center

cy
Single

The y-coordinate of the center

color0
Color

The sRGB color to use at the start of the sweep

color1
Color

The sRGB color to use at the end of the sweep

Attributes

Remarks

A Shader that draws a sweep gradient around a center point.

Java documentation for android.graphics.SweepGradient.SweepGradient(float, float, int, int).

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

SweepGradient(Single, Single, Int32[], Single[])

A Shader that draws a sweep gradient around a center point.

[Android.Runtime.Register(".ctor", "(FF[I[F)V", "")]
public SweepGradient (float cx, float cy, int[] colors, float[]? positions);
[<Android.Runtime.Register(".ctor", "(FF[I[F)V", "")>]
new Android.Graphics.SweepGradient : single * single * int[] * single[] -> Android.Graphics.SweepGradient

Parameters

cx
Single

The x-coordinate of the center

cy
Single

The y-coordinate of the center

colors
Int32[]

The sRGB colors to be distributed between around the center. There must be at least 2 colors in the array.

positions
Single[]

May be NULL. The relative position of each corresponding color in the colors array, beginning with 0 and ending with 1.0. If the values are not monotonic, the drawing may produce unexpected results. If positions is NULL, then the colors are automatically spaced evenly.

Attributes

Remarks

A Shader that draws a sweep gradient around a center point.

Java documentation for android.graphics.SweepGradient.SweepGradient(float, float, int[], float[]).

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

SweepGradient(Single, Single, Int64, Int64)

A Shader that draws a sweep gradient around a center point.

[Android.Runtime.Register(".ctor", "(FFJJ)V", "", ApiSince=29)]
public SweepGradient (float cx, float cy, long color0, long color1);
[<Android.Runtime.Register(".ctor", "(FFJJ)V", "", ApiSince=29)>]
new Android.Graphics.SweepGradient : single * single * int64 * int64 -> Android.Graphics.SweepGradient

Parameters

cx
Single

The x-coordinate of the center

cy
Single

The y-coordinate of the center

color0
Int64

The color to use at the start of the sweep

color1
Int64

The color to use at the end of the sweep

Attributes

Remarks

A Shader that draws a sweep gradient around a center point.

Java documentation for android.graphics.SweepGradient.SweepGradient(float, float, long, long).

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

SweepGradient(Single, Single, Int64[], Single[])

A Shader that draws a sweep gradient around a center point.

[Android.Runtime.Register(".ctor", "(FF[J[F)V", "", ApiSince=29)]
public SweepGradient (float cx, float cy, long[] colors, float[]? positions);
[<Android.Runtime.Register(".ctor", "(FF[J[F)V", "", ApiSince=29)>]
new Android.Graphics.SweepGradient : single * single * int64[] * single[] -> Android.Graphics.SweepGradient

Parameters

cx
Single

The x-coordinate of the center

cy
Single

The y-coordinate of the center

colors
Int64[]

The colors to be distributed between around the center. There must be at least 2 colors in the array.

positions
Single[]

May be NULL. The relative position of each corresponding color in the colors array, beginning with 0 and ending with 1.0. If the values are not monotonic, the drawing may produce unexpected results. If positions is NULL, then the colors are automatically spaced evenly.

Attributes

Remarks

A Shader that draws a sweep gradient around a center point.

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

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