Draws a rectangle onto the target device context, and then fills the rectangle with a gradient that begins with the specified starting color and ends with the specified ending color.
graphics
The destination Graphics object, where the gradient effect will be displayed.
destRect
Rectangle to be used as the display destination rectangle.
gradientStyle
Gradient style. For possible values refer to SpecialEffectsGradientStyle.
startColor
Value that specifies the starting color.
endColor
Value that specifies the ending color.
steps
Number of gradient color steps. Valid values are 2 to 256.
For more information, refer to Implementing Special Effects.
This Example shows the minimum requirements for using the GradientFillRectangle(Graphics,Rectangle,SpecialEffectsGradientStyle,Color,Color,Int32) method to draw and fill a rectangle with a color gradient.
Products |
Support |
Feedback: GradientFillRectangle(Graphics,Rectangle,SpecialEffectsGradientStyle,Color,Color,Int32) Method - Leadtools.SpecialEffects |
Introduction |
Help Version 19.0.2017.3.21
|