GraphicsExtensionsFillTriangle2D(Graphics, Brush, Vector3, Vector3, Vector3) 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,
Vector3 vector1,
Vector3 vector2,
Vector3 vector3
)
<ExtensionAttribute>
<EditorBrowsableAttribute(EditorBrowsableState.Always)>
Public Shared Sub FillTriangle2D (
g As Graphics,
brush As Brush,
vector1 As Vector3,
vector2 As Vector3,
vector3 As Vector3
)
Dim g As Graphics
Dim brush As Brush
Dim vector1 As Vector3
Dim vector2 As Vector3
Dim vector3 As Vector3
g.FillTriangle2D(brush, vector1, vector2,
vector3)
public:
[ExtensionAttribute]
[EditorBrowsableAttribute(EditorBrowsableState::Always)]
static void FillTriangle2D(
Graphics^ g,
Brush^ brush,
Vector3 vector1,
Vector3 vector2,
Vector3 vector3
)
[<ExtensionAttribute>]
[<EditorBrowsableAttribute(EditorBrowsableState.Always)>]
static member FillTriangle2D :
g : Graphics *
brush : Brush *
vector1 : Vector3 *
vector2 : Vector3 *
vector3 : Vector3 -> 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 Vector3
-
The first vector.
- vector2 Vector3
-
The second vector.
- vector3 Vector3
-
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 Vector3(50, 100, 0)
Dim v2 As New Vector3(100, 50, 0)
Dim v3 As New Vector3(150, 100, 0)
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.