ComponentOne Input for WinForms
C1.Win.C1Input.4.5.2 Assembly / 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 System.Drawing.Color, _
       ByVal color2 As System.Drawing.Color, _
       ByVal color3 As System.Drawing.Color, _
       ByVal vertex1 As System.Drawing.Point, _
       ByVal vertex2 As System.Drawing.Point, _
       ByVal vertex3 As System.Drawing.Point _
    ) 
    public void FillTriangle( 
       System.Drawing.Color color1,
       System.Drawing.Color color2,
       System.Drawing.Color color3,
       System.Drawing.Point vertex1,
       System.Drawing.Point vertex2,
       System.Drawing.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.
    See Also