Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.6.2
|
Leadtools.SpecialEffects Namespace > SpecialEffectsProcessor Class > GradientPatternFillRectangle Method : GradientPatternFillRectangle(IntPtr,Rectangle,SpecialEffectsPatternStyle,Color,Color) Method |
'Declaration Public Overloads Sub GradientPatternFillRectangle( _ ByVal hdc As IntPtr, _ ByVal destRect As Rectangle, _ ByVal patternStyle As SpecialEffectsPatternStyle, _ ByVal backColor As Color, _ ByVal foreColor As Color _ )
'Usage Dim instance As SpecialEffectsProcessor Dim hdc As IntPtr Dim destRect As Rectangle Dim patternStyle As SpecialEffectsPatternStyle Dim backColor As Color Dim foreColor As Color instance.GradientPatternFillRectangle(hdc, destRect, patternStyle, backColor, foreColor)
public void GradientPatternFillRectangle( IntPtr hdc, Rectangle destRect, SpecialEffectsPatternStyle patternStyle, Color backColor, Color foreColor )
public: void GradientPatternFillRectangle( IntPtr hdc, Rectangle destRect, SpecialEffectsPatternStyle patternStyle, Color backColor, Color foreColor )
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.
Imports Leadtools Imports Leadtools.Codecs Imports Leadtools.SpecialEffects Imports Leadtools.Drawing Public Sub GradientPatternFillRectangle(ByVal g As Graphics, ByVal destRect As Rectangle) Dim processor As SpecialEffectsProcessor = New SpecialEffectsProcessor() processor.GradientPatternFillRectangle(g, destRect, SpecialEffectsPatternStyle.DiagonalCross, Color.Black, Color.Blue) End Sub
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); }