Notice
- Today
- Total
Recent Posts
Recent Comments
Link
Tags
- mariaDB 설치
- <<<<<<<<
- .mine
- mariaDB 외부접속
- ContextMenuStrip
- WebViewClient
- mp4 재생
- 자동 닫힘
- startActivity
- UltraToolbarsManager
- MariaDB
- Spread
- node.js 설치
- Image icon 변환
- Raspberry Pi
- node.js
- ScrollBarTrackPolicy
- OSHP
- usb 인식 불가
- 동영상 오류
- Ribbon
- c#
- onPageFinished
- 라즈베리파이
- ubuntu
- ImageList Icon 변환
- OpenFileDialog
- 라즈베리 피이
- 다중 Filter
- RaspberryPi
Archives
목록DashStyle (1)
Realman's World
[C#] 점선 그리기
DrawLine을 이용하여 선을 그릴때 일반 실선 외에 점선을 그릴 때가 있다. 이때는 아래와 같이 하면 된다. Graphics e = Graphics.FromImage(pic.Image); Pen pLine = new Pen(Color.Gray,2); pLine.DashStyle = DashStyle.DashDot; Point pt1 = new Point(10, 10); Point pt2 = new Point(100, 100); e.DrawLine(pLine, pt1, pt2); 이때 DashStyle의 맴버 변수 설정에 따라 선의 종류는 달라진다.
Language/C#
2009. 1. 16. 14:24