ComponentOne MultiSelect for WinForms
C1.Framework.Drawing.Gdi Namespace / GradientBrush Class / FillTriangle Method
A C1.Framework.Drawing.Gdi.DeviceContexts.DeviceContext indicates the dc.
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.
A System.Drawing.Color array indicates the gradient colors.

In This Topic
    FillTriangle Method (GradientBrush)
    In This Topic
    Fills triangle with specified colors.
    Syntax
    'Declaration
     
    
    Public Shared Sub FillTriangle( _
       ByVal deviceContext As DeviceContext, _
       ByVal vertex1 As Point, _
       ByVal vertex2 As Point, _
       ByVal vertex3 As Point, _
       ByVal colors() As Color _
    ) 
    public static void FillTriangle( 
       DeviceContext deviceContext,
       Point vertex1,
       Point vertex2,
       Point vertex3,
       Color[] colors
    )

    Parameters

    deviceContext
    A C1.Framework.Drawing.Gdi.DeviceContexts.DeviceContext indicates the dc.
    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.
    colors
    A System.Drawing.Color array indicates the gradient colors.
    See Also