public void GradientPatternFillRectangle(
Graphics g,
Rectangle destRect,
SpecialEffectsPatternStyle patternStyle,
Color backColor,
Color foreColor
)
g
The destination Graphics object
destRect
Rectangle to be used as the display destination rectangle.
patternStyle
Filling style. For possible values refer to SpecialEffectsPatternStyle.
backColor
Value that specifies the background color.
foreColor
Value that specifies the foreground color.
For general information, Implementing Special Effects.
This example shows the minimum requirements for using the GradientPatternFillRectangle(Graphics,Rectangle,SpecialEffectsPatternStyle,Color,Color) method to draw and fill a rectangle with a pattern and color.
using Leadtools;
using Leadtools.Codecs;
using Leadtools.SpecialEffects;
using Leadtools.Drawing;
public void GradientPatternFillRectangle(Graphics g, Rectangle destRect)
{
SpecialEffectsProcessor processor = new SpecialEffectsProcessor();
processor.GradientPatternFillRectangle(g,
destRect,
SpecialEffectsPatternStyle.DiagonalCross,
Color.Black,
Color.Blue);
}