일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- PostgreSQL
- Python
- Redshift
- Apache
- Github
- matplotlib
- Mac
- Kotlin
- Google Spreadsheet
- Excel
- Tkinter
- google apps script
- SQL
- list
- 파이썬
- string
- gas
- array
- math
- dataframe
- GIT
- PANDAS
- hive
- django
- c#
- Java
- Google Excel
- PySpark
- numpy
- Today
- Total
목록pen (2)
달나라 노트

DrawRectangle method는 비어있는(테두리만 있는) 사각형을 그립니다. Syntax - DrawRectangle FillRectangle(pen, Rectangle) - pen FillRectangle method는 첫 번째 인자로 Pen 객체를 받습니다. Pen 객체는 색상과 두께 정보를 가지고 있습니다. - Rectangle 두 번째 인자로는 Rectangle 객체를 받습니다. Rectangle 객체는 사각형의 x, y좌표와 가로/세로 길이 정보를 받습니다. Syntax - Rectangle object Rectangle rect = new Rectangle(x, y, width, height) - x, y 사각형 왼쪽 상단 꼭지점의 x, y 좌표를 의미합니다. 사각형 좌표의 기준은 왼쪽..

DrawEllipse method는 Form에 원/타원을 그릴 수 있도록 해줍니다. 여기서 말하는 원/타원이란 속이 비어있는 원/타원을 의미합니다. (속이 채워진 원/타원은 FillEllpse method를 사용해야 합니다.) Pen class는 도형을 그릴 때 사용할 색상, 굵기 등의 속성을 가진 펜 객체를 생성할 수 있습니다. 아래 코드는 Window의 특정 위치에 타원을 그리는 코드입니다. using System; using System.Windows.Forms; using System.Drawing; class MyProgram { public static void Main() { Form fm = new Form(); fm.Width = 500; fm.Height = 300; void fm_pa..