LEADTOOLS Special Effects (Leadtools.SpecialEffects assembly)
LEAD Technologies, Inc

GradientPatternFillRectangle(IntPtr,Rectangle,SpecialEffectsPatternStyle,Color,Color) Method

Example 





Handle to a device context.
Rectangle to be used as the display destination rectangle.
Filling style. For possible values refer to SpecialEffectsPatternStyle.
Value that specifies the background color.
Value that specifies the foreground color.
Draws a rectangle onto the target device context, and then fills the rectangle with the specified pattern and color.
Syntax
public void GradientPatternFillRectangle( 
   IntPtr hdc,
   Rectangle destRect,
   SpecialEffectsPatternStyle patternStyle,
   Color backColor,
   Color foreColor
)
'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
)
 function Leadtools.SpecialEffects.SpecialEffectsProcessor.GradientPatternFillRectangle(IntPtr,Rectangle,SpecialEffectsPatternStyle,Color,Color)( 
   hdc ,
   destRect ,
   patternStyle ,
   backColor ,
   foreColor 
)
public:
void GradientPatternFillRectangle( 
   IntPtr hdc,
   Rectangle destRect,
   SpecialEffectsPatternStyle patternStyle,
   Color backColor,
   Color foreColor
) 

Parameters

hdc
Handle to a device context.
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.
Remarks
For general information, refer to Implementing Special Effects.
Example
Copy CodeCopy Code  
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
public void GradientPatternFillRectangle(Graphics g, Rectangle destRect)
{
   SpecialEffectsProcessor processor = new SpecialEffectsProcessor();
   processor.GradientPatternFillRectangle(g,
                                          destRect,
                                          SpecialEffectsPatternStyle.DiagonalCross,
                                          Color.Black,
                                          Color.Blue);
}
Requirements

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

See Also

Reference

SpecialEffectsProcessor Class
SpecialEffectsProcessor Members
Overload List

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.