Toggle navigation
Toggle navigation
This project
Loading...
Sign in
남윤형
/
flowchart_draw
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
남윤형
2021-05-23 10:57:42 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0670e57bbf46e14b8cfbd21589ed6c1adc37473c
0670e57b
1 parent
be84fd56
평행사변형을 만드는 클래스 생성
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
0 deletions
FigParallelogram.cs
FigParallelogram.cs
0 → 100644
View file @
0670e57
using
System
;
using
System.Collections.Generic
;
using
System.Drawing
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
flowchart
{
class
FigParallelogram
:
FigBase
{
// 생성자도 상속해서 사용.
public
FigParallelogram
(
Point
location
,
Size
size
)
:
base
(
location
,
size
)
{
}
public
override
void
Draw
(
Graphics
g
)
{
//평행사변형을 그리는 함수
using
(
Pen
pen
=
new
Pen
(
Color
.
Red
,
1
))
{
int
x1
,
x2
,
x3
,
x4
,
y1
,
y2
;
x1
=
Location
.
X
+
30
;
x2
=
Location
.
X
+
Size
.
Width
;
x3
=
Location
.
X
;
x4
=
Location
.
X
+
70
;
y1
=
Location
.
Y
;
y2
=
Location
.
Y
+
Size
.
Height
;
g
.
DrawLine
(
pen
,
x1
,
y1
,
x3
,
y2
);
g
.
DrawLine
(
pen
,
x3
,
y2
,
x4
,
y2
);
g
.
DrawLine
(
pen
,
x4
,
y2
,
x2
,
y1
);
g
.
DrawLine
(
pen
,
x2
,
y1
,
x1
,
y1
);
}
base
.
Draw
(
g
);
}
}
}
Please
register
or
login
to post a comment