ComponentOne MultiSelect for WinForms
C1.Framework.Drawing.Gdi.DeviceContexts Namespace / DeviceContext Class / FillTriangle Method
A System.Drawing.Color indicates the color of the vertex1.
A System.Drawing.Color indicates the color of the vertex2.
A System.Drawing.Color indicates the color of the vertex3.
A System.Drawing.Point indicates the vertex1 of triangle.
A System.Drawing.Point indicates the vertex2 of triangle.
A System.Drawing.Point indicates the vertex3 of triangle.

In This Topic
    FillTriangle Method (DeviceContext)
    In This Topic
    Gradient fills the triangle with specified colors.
    Syntax
    'Declaration
     
    
    Public Sub FillTriangle( _
       ByVal color1 As Color, _
       ByVal color2 As Color, _
       ByVal color3 As Color, _
       ByVal vertex1 As Point, _
       ByVal vertex2 As Point, _
       ByVal vertex3 As Point _
    ) 
    public void FillTriangle( 
       Color color1,
       Color color2,
       Color color3,
       Point vertex1,
       Point vertex2,
       Point vertex3
    )

    Parameters

    color1
    A System.Drawing.Color indicates the color of the vertex1.
    color2
    A System.Drawing.Color indicates the color of the vertex2.
    color3
    A System.Drawing.Color indicates the color of the vertex3.
    vertex1
    A System.Drawing.Point indicates the vertex1 of triangle.
    vertex2
    A System.Drawing.Point indicates the vertex2 of triangle.
    vertex3
    A System.Drawing.Point indicates the vertex3 of triangle.
    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