C# 绘制一个多边形
时间: 2023-11-22 10:50:52 浏览: 238
要在C#中绘制一个多边形,你可以按照以下步骤进行操作:
1. 准备绘图所需的变量,包括一个`Graphics`对象用于绘图,一个`List<Point>`对象用于存储绘制多边形的点集,一个`Rectangle`对象用于存储要用于绘图的矩形,以及其他需要的变量和对象。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [使用c#实现一个简单绘图软件(绘制矩形、多边形,画笔、橡皮擦功能)的完整教程](https://blog.csdn.net/a486259/article/details/127385914)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* [c# 通过鼠标点击绘制多边形](https://blog.csdn.net/wcx1293296315/article/details/118090360)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文