-
Notifications
You must be signed in to change notification settings - Fork 123
/
Copy pathReverseTriangle.cs
38 lines (36 loc) · 1.13 KB
/
ReverseTriangle.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#region Copyright Syncfusion Inc. 2001-2021.
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
// Use of this code is subject to the terms of our license.
// A copy of the current license can be obtained at any time by e-mailing
// licensing@syncfusion.com. Any infringement will be prosecuted under
// applicable laws.
#endregion
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace BorderLayout_Example
{
public partial class ReverseTriangle : UserControl
{
public ReverseTriangle()
{
InitializeComponent();
}
private void Triangle_Paint(object sender, PaintEventArgs e)
{
Point[] p = new Point[3];
p[0] = new Point(2, 1);
p[1] = new Point(14, 1);
p[2] = new Point(8, 14);
SolidBrush brush = new SolidBrush(Color.FromArgb(55, 159, 100));
e.Graphics.DrawLines(Pens.Black, p);
e.Graphics.FillPolygon(brush, p);
}
}
}