C#画笔Pen绘制自定义线的帽子
作者:zhuzhao 时间:2022-01-09 20:33:55
本文实例讲述了C#画笔Pen绘制自定义线的帽子。分享给大家供大家参考。具体如下:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Drawing.Drawing2D;
namespace WindowsApplication2
{
public partial class Form11 : Form
{
public Form11()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
Pen pen1 = new Pen(Color.Blue, 12);
pen1.EndCap = LineCap.Custom;
pen1.CustomEndCap = new AdjustableArrowCap(5f, 5f, true);
Graphics g1 = this.CreateGraphics();
g1.DrawLine(pen1, 10, 100, 100,100);
}
}
}
希望本文所述对大家的C#程序设计有所帮助。
标签:C#,画笔,Pen
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
Java中弱引用和软引用的区别以及虚引用和强引用介绍
2023-01-23 18:55:33
![](https://img.aspxhome.com/file/2023/1/80851_0s.gif)
解析android中的dip,dp,px,sp和屏幕密度
2023-09-26 20:44:38
C#使用Matrix执行缩放的方法
2022-05-03 15:46:58
Java线程并发中常见的锁机制详细介绍
2023-07-04 05:33:33
![](https://img.aspxhome.com/file/2023/9/70339_0s.png)
C#中通过反射将枚举元素加载到ComboBo的实现方法
2022-05-26 09:28:10
![](https://img.aspxhome.com/file/2023/7/80097_0s.png)
浅谈Java对象禁止使用基本类型
2022-11-07 19:59:04
Java求最小生成树的两种算法详解
2023-11-10 07:21:24
![](https://img.aspxhome.com/file/2023/6/59246_0s.png)
java实现KFC点餐小程序
2022-12-11 21:06:51
![](https://img.aspxhome.com/file/2023/7/87137_0s.png)
maven+阿里云创建国内镜像的中央仓库(亲测可用)
2023-05-12 22:38:58
![](https://img.aspxhome.com/file/2023/3/86043_0s.jpg)
Java调用Oracle存储过程详解
2022-09-09 03:19:45
java GUI编程之监听操作实例分析
2022-09-28 05:55:53
SpringMVC一步到位精通拦截器
2023-11-25 01:47:45
![](https://img.aspxhome.com/file/2023/1/60081_0s.png)
详解Spring Boot 事务的使用
2022-08-09 01:59:07
java简易小游戏制作代码
2023-11-23 19:49:38
![](https://img.aspxhome.com/file/2023/8/59048_0s.jpg)
Redis使用RedisTemplate模板类的常用操作方式
2023-01-30 08:33:40
java中ResultSet遍历数据操作
2022-06-13 05:02:13
SpringMVC如何接收参数各种场景
2022-01-23 22:56:24
JSON.toJSONString()空字段不忽略修改的问题
2023-06-16 03:12:37
Spring Boot中如何使用Swagger详解
2023-09-27 18:13:58
![](https://img.aspxhome.com/file/2023/9/91079_0s.png)
java 一个类实现两个接口的案例
2023-08-09 12:24:35
![](https://img.aspxhome.com/file/2023/0/58160_0s.jpg)