System::Drawing::Drawing2D::ColorBlend class

ColorBlend class

Contains arrays of colors and positions used for interpolating color blending in a multicolor gradient. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.

class ColorBlend : public System::Object

Methods

MethodDescription
ColorBlend()Constructs a new instance of ColorBlend class.
ColorBlend(int)Constructs a new instance of Blend class.
get_Colors()Returns an array of colors to use at corresponding positions along a gradient.
get_Positions()Returns the array of blend positions along a gradient.
set_Colors(const ArrayPtr<Color>&)Sets an array of colors to use at corresponding positions along a gradient.
set_Positions(const ArrayPtr<float>&)Sets the array of blend positions along a gradient.

See Also