System::Drawing::Drawing2D::LinearGradientBrush class

LinearGradientBrush class

Represents a linear gradient brush. 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 LinearGradientBrush : public System::Drawing::Brush

Methods

MethodDescription
Clone() overrideCreates a copy of the current object.
get_Blend() constReturns a blend that specifies factors and positions of base colors for this brush.
get_GammaCorrection() constReturns a value indicating that gamma correction is enabled for this brush.
get_InterpolationColors() constReturns a ColorBlend object that defines a multicolor linear gradient.
get_LinearColors() constReturns starting and ending colors of this gradient.
get_Rectangle()Returns a bounding rectangle.
get_Transform() constReturns a copy of a Matrix object that specifies the geometrical transformations for the brush represented by the current object.
get_WrapMode() constReturns the wrap mode.
LinearGradientBrush(const PointF&, const PointF&, const Color&, const Color&)RTTI information.
LinearGradientBrush(const Point&, const Point&, const Color&, const Color&)Constructs a new instance of LinearGradientBrush.
LinearGradientBrush(const RectangleF&, const Color&, const Color&, LinearGradientMode)Constructs a new instance of LinearGradientBrush.
LinearGradientBrush(const Rectangle&, const Color&, const Color&, LinearGradientMode)Constructs a new instance of LinearGradientBrush.
LinearGradientBrush(const RectangleF&, const Color&, const Color&, float, bool)Constructs a new instance of LinearGradientBrush.
LinearGradientBrush(const Rectangle&, const Color&, const Color&, float, bool)Constructs a new instance of LinearGradientBrush.
MultiplyTransform(const SharedPtr<Matrix>&, MatrixOrder)Multiplies current object’s transform matrix by the specified matrix.
ResetTransform()Resets current object’s transformation matrix.
RotateTransform(float, MatrixOrder)Rotates current object’s transform matrix.
ScaleTransform(float, float, MatrixOrder)Scales current object’s transform matrix.
set_Blend(const SharedPtr<Blend>&)Sets a blend that specifies factors and positions of base colors for this brush.
set_GammaCorrection(bool)Sets gamma correction status for this brush.
set_InterpolationColors(const SharedPtr<ColorBlend>&)Sets a ColorBlend object that defines a multicolor linear gradient.
set_LinearColors(const ArrayPtr<Color>&)Sets starting and ending colors of this gradient.
set_Transform(const SharedPtr<Matrix>&)Sets a Matrix object that specifies the geometrical transformations for the brush represented by the current object.
set_WrapMode(WrapMode)Sets the wrap mode.
SetBlendTriangularShape(float, float)NOT IMPLEMENTED.
SetSigmaBellShape(float, float)NOT IMPLEMENTED.
TranslateTransform(float, float, Drawing2D::MatrixOrder)Translates current object’s transform matrix.

See Also