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

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 좌표를 의미합니다. 사각형 좌표의 기준은 왼쪽..

FillRectangle method는 채워진 사각형을 그려줍니다. Syntax - FillRectangle FillRectangle(brush, Rectangle) - brush FillRectangle method는 첫 번째 인자로 Brush 객체를 받습니다. Brush 객체는 색상 정보를 가지고 있습니다. - Rectangle 두 번째 인자로는 Rectangle 객체를 받습니다. Rectangle 객체는 사각형의 x, y좌표와 가로/세로 길이 정보를 받습니다. Syntax - Rectangle object Rectangle rect = new Rectangle(x, y, width, height) - x, y 사각형 왼쪽 상단 꼭지점의 x, y 좌표를 의미합니다. 사각형 좌표의 기준은 왼쪽 상단 꼭..
using System; using System.Windows.Forms; using System.Drawing; class ParabolicMotion { public static void Main() { // Constants // Constants cts = new Constants(); Form fm = new Form(); PictureBox pb = new PictureBox(); Image img_bg_day = Image.FromFile(cts.dir_img_bg_day); double ball_x = cts.ball_initial_x; double ball_y = cts.ball_initial_y; double ball_velocity_x = cts.ball_initial_velocity..

프로그램을 만들다보면 Window의 크기를 제한해야할 때가 있습니다. Window가 일정 크기 이상 커지지 못하게 하거나 Window가 일정 크기보다 작아지지 못하게 하는 등의 경우이죠. 이럴땐 Form의 MaximumSize, MinimumSize 옵션을 이용할 수 있습니다. Syntax Form.MinimumSize = new System.Drawing.Size(width, height); Form.MaximumSize = new System.Drawing.Size(width, height); 사용법은 위와 같습니다. Form 객체의 MinimumSize attribute에 Size 객체를 전달하면 됩니다. Form 객체의 MaximumSize attribute에 Size 객체를 전달하면 됩니다. M..