Android Guides | Samples

Android.Graphics.LinearGradient Constructor

Create a shader that draws a linear gradient along a line.

Syntax

[Android.Runtime.Register(".ctor", "(FFFF[I[FLandroid/graphics/Shader$TileMode;)V", "")]
public LinearGradient (Single x0, Single y0, Single x1, Single y1, Int32[] colors, Single[] positions, Shader+TileMode tile)

Parameters

x0
y0
x1
y1
colors
positions
tile

Remarks

Create a shader that draws a linear gradient along a line.

[Android Documentation]

Requirements

Namespace: Android.Graphics
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1