GraphicsExtensionsDrawTriangle2D(Graphics, Pen, Vector3, Vector3, Vector3) Method
Draws 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 DrawTriangle2D(
this Graphics g,
Pen pen,
Vector3 vector1,
Vector3 vector2,
Vector3 vector3
)
<ExtensionAttribute>
<EditorBrowsableAttribute(EditorBrowsableState.Always)>
Public Shared Sub DrawTriangle2D (
g As Graphics,
pen As Pen,
vector1 As Vector3,
vector2 As Vector3,
vector3 As Vector3
)
Dim g As Graphics
Dim pen As Pen
Dim vector1 As Vector3
Dim vector2 As Vector3
Dim vector3 As Vector3
g.DrawTriangle2D(pen, vector1, vector2,
vector3)
public:
[ExtensionAttribute]
[EditorBrowsableAttribute(EditorBrowsableState::Always)]
static void DrawTriangle2D(
Graphics^ g,
Pen^ pen,
Vector3 vector1,
Vector3 vector2,
Vector3 vector3
)
[<ExtensionAttribute>]
[<EditorBrowsableAttribute(EditorBrowsableState.Always)>]
static member DrawTriangle2D :
g : Graphics *
pen : Pen *
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.
- pen Pen
- Pen that determines the color, width, and style of the triangle.
- 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.DrawTriangle2D(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.