GraphicsExtensionsFillTriangle2D(Graphics, Brush, Vector2, Vector2, Vector2) Method
Fills the interior of a two-dimensional triangle.
Namespace: DevCase.Extensions.GraphicsExtensionsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[EditorBrowsableAttribute(EditorBrowsableState.Always)]
public static void FillTriangle2D(
this Graphics g,
Brush brush,
Vector2 vector1,
Vector2 vector2,
Vector2 vector3
)
<ExtensionAttribute>
<EditorBrowsableAttribute(EditorBrowsableState.Always)>
Public Shared Sub FillTriangle2D (
g As Graphics,
brush As Brush,
vector1 As Vector2,
vector2 As Vector2,
vector3 As Vector2
)
Dim g As Graphics
Dim brush As Brush
Dim vector1 As Vector2
Dim vector2 As Vector2
Dim vector3 As Vector2
g.FillTriangle2D(brush, vector1, vector2,
vector3)
public:
[ExtensionAttribute]
[EditorBrowsableAttribute(EditorBrowsableState::Always)]
static void FillTriangle2D(
Graphics^ g,
Brush^ brush,
Vector2 vector1,
Vector2 vector2,
Vector2 vector3
)
[<ExtensionAttribute>]
[<EditorBrowsableAttribute(EditorBrowsableState.Always)>]
static member FillTriangle2D :
g : Graphics *
brush : Brush *
vector1 : Vector2 *
vector2 : Vector2 *
vector3 : Vector2 -> unit
No code example is currently available or this language may not be supported.
- g Graphics
-
The source Graphics.
- brush Brush
- Brush that determines the characteristics of the fill.
- vector1 Vector2
-
The first vector.
- vector2 Vector2
-
The second vector.
- vector3 Vector2
-
The third vector.
In Visual Basic and C#, you can call this method as an instance method on any object of type
Graphics. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
This is a code example.
No code example is currently available or this language may not be supported.
Dim v1 As New Vector2(50, 100)
Dim v2 As New Vector2(100, 50)
Dim v3 As New Vector2(150, 100)
Using g As Graphics = Me.CreateGraphics(),
pen As New Pen(Color.Red)
g.FillTriangle2D(v1, v2, v3)
End Using
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.