Méthode | Description | |
---|---|---|
AddGradientPoint ( GradientPoint point ) : void |
Adds a gradient point to this gradient object. No two gradient points have the same position. @throw System.ArgumentException if two control points have the same position. It does not matter which order these gradient points are added.
|
|
AddGradientPoint ( float position, IColor color ) : void |
Adds a gradient point to this gradient object. No two gradient points have the same position. @throw System.ArgumentException if two control points have the same position. It does not matter which order these gradient points are added.
|
|
Clear ( ) : void |
Deletes all the gradient points from this gradient object. All gradient points from this gradient object are deleted.
|
|
CountGradientPoints ( ) : int |
Return the size of the GradientPoint list
|
|
GetColor ( float position ) : IColor |
Returns the color at the specified position in the color gradient.
|
|
GetGradientPoints ( ) : IList |
Returns a read-only IList{GradientPoint} wrapper for the current GradientPoint list.
|
|
GradientColor ( ) : System |
Create an empty GradientColor
|
|
GradientColor ( IColor color ) : System |
Create a new GradientColor with one color
|
|
GradientColor ( IColor start, IColor end ) : System |
Create a new GradientColor betwwen start and end
|
public AddGradientPoint ( GradientPoint point ) : void | ||
point | GradientPoint | The gradient point to add |
Résultat | void |
public AddGradientPoint ( float position, IColor color ) : void | ||
position | float | The position of this gradient point |
color | IColor | The color of this gradient point |
Résultat | void |
public GetColor ( float position ) : IColor | ||
position | float | The specified position |
Résultat | IColor |
public GradientColor ( IColor color ) : System | ||
color | IColor | color at position -1 and 1 |
Résultat | System |
public GradientColor ( IColor start, IColor end ) : System | ||
start | IColor | The start color at position -1 |
end | IColor | The end color at position 1 |
Résultat | System |