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

C#에는 Clipping이라는 것이 있습니다. Clipping은 간단히 말하면 Form 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; Image img = Image.FromFile("C:\\Users\\Public\\arrow.png"); void fm_show_img(object sender, Pa..
numpy의 clip method는 전달받은 숫자를 최소값 또는 최대값 사이의 값인지 체크합니다. 최소값보다 작은 값은 최소값으로 return하며, 최대값보다 큰 값은 최대값으로 return합니다. 만약 array를 전달받았을 경우 array에 있는 각각의 요소들마다 clip을 적용하여 array를 return합니다. Syntax numpy.clip(value_array, min, max) value_array = clip method를 적용할 어떤 값 또는 array입니다. min = 최소값입니다. max = 최대값입니다. import numpy as np val_test = np.clip(10, 2, 7) print(val_test) -- Result 7 10은 max값인 7보다 크므로 7이 retu..