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.
    See Also