백엔드/C#
Polygon에 빗금치기
1005ptr
2019. 7. 15. 19:33
반응형
https://stackoverflow.com/questions/26257440/hatching-2d-polygon
Hatching 2D polygon
Given a 2D polygon made up of a set of points, I'm looking to draw hatching through the inside of the polygon. By hatching I mean evenly spaces lines, all at around 45 degrees. I'm having trouble
stackoverflow.com
적재안되는 영역에 빗금을 치기로했다.
이걸 어떻게 한다~ 직접 구현해야하나 했는데 먼저 검색을 해보기로 했다.
검색어 1번. 빗금 영어 => Hatched
검색어 2번. C# Polygon hatched => 위 링크
Draw메서드를 Override하여 base.Draw해놓고 빗금을 치는 코드를 추가하였다.
반응형