Leadtools.SpecialEffects Namespace > SpecialEffectsProcessor Class > GradientFillRectangle Method : GradientFillRectangle(IntPtr,Rectangle,SpecialEffectsGradientStyle,Color,Color,Int32) Method |
public void GradientFillRectangle( IntPtr hdc, Rectangle destRect, SpecialEffectsGradientStyle gradientStyle, Color startColor, Color endColor, int steps )
'Declaration Public Overloads Sub GradientFillRectangle( _ ByVal hdc As IntPtr, _ ByVal destRect As Rectangle, _ ByVal gradientStyle As SpecialEffectsGradientStyle, _ ByVal startColor As Color, _ ByVal endColor As Color, _ ByVal steps As Integer _ )
'Usage Dim instance As SpecialEffectsProcessor Dim hdc As IntPtr Dim destRect As Rectangle Dim gradientStyle As SpecialEffectsGradientStyle Dim startColor As Color Dim endColor As Color Dim steps As Integer instance.GradientFillRectangle(hdc, destRect, gradientStyle, startColor, endColor, steps)
public void GradientFillRectangle( IntPtr hdc, Rectangle destRect, SpecialEffectsGradientStyle gradientStyle, Color startColor, Color endColor, int steps )
function Leadtools.SpecialEffects.SpecialEffectsProcessor.GradientFillRectangle(IntPtr,Rectangle,SpecialEffectsGradientStyle,Color,Color,Int32)( hdc , destRect , gradientStyle , startColor , endColor , steps )
public: void GradientFillRectangle( IntPtr hdc, Rectangle destRect, SpecialEffectsGradientStyle gradientStyle, Color startColor, Color endColor, int steps )
For more information, refer to Implementing Special Effects.
Public Sub GradientFillRectangle(ByVal g As Graphics, ByVal destRect As Rectangle) Dim processor As SpecialEffectsProcessor = New SpecialEffectsProcessor() processor.GradientFillRectangle(g, destRect, SpecialEffectsGradientStyle.EllipseToC, Color.Red, Color.Blue, 12) End Sub
public void GradientFillRectangle(Graphics g, Rectangle destRect) { SpecialEffectsProcessor processor = new SpecialEffectsProcessor(); processor.GradientFillRectangle(g, destRect, SpecialEffectsGradientStyle.EllipseToC, Color.Red, Color.Blue, 12); }
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2