Class ColorBlend
Defines arrays of colors and positions used for interpolating color blending in a multicolor gradient. This class cannot be inherited.
public sealed class ColorBlend
- Inheritance
-
ColorBlend
- Inherited Members
Constructors
ColorBlend()
Initializes a new instance of the ColorBlend class.
public ColorBlend()
ColorBlend(int)
Initializes a new instance of the ColorBlend class with the specified number of colors and positions.
public ColorBlend(int count)
Parameters
count
intThe number of colors and positions in this ColorBlend.
Properties
Colors
Gets or sets an array of colors that represents the colors to use at corresponding positions along a gradient.
public Color[] Colors { get; set; }
Property Value
- Color[]
An array of Color structures that represents the colors to use at corresponding positions along a gradient.
Positions
Gets or sets the positions along a gradient line.
public float[] Positions { get; set; }
Property Value
- float[]
An array of values that specify percentages of distance along the gradient line.
Methods
Equals(object)
Tests whether the specified object is a ColorBlend class and is equivalent to this ColorBlend class.
public override bool Equals(object obj)
Parameters
obj
objectThe object to test.
Returns
- bool
True if
obj
is a ColorBlend class equivalent to this ColorBlend class; otherwise, false.
GetHashCode()
Returns a hash code for this instance.
public override int GetHashCode()
Returns
- int
A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.