怎样用C#画个虚线圆形啊!跪求帮助!
解决方案 »
- 让TextBox控件显示为一条横线(顶者没分)
- 怎么获取到数据库sql2000 事务日志中执行过sql语句( 查询 修改 删除 存储过程等)
- 问一个远程存入档案到服务器的问题
- 在c#winform中怎么查询xml节点的内容
- 比较两个数据库中有什么不相同的地方,将不相同的字段用红色标识出来?
- 如何调整系统音量
- [求助]请问怎样得到当前操作系统的信息?
- DevExpress girdControl如何双击进入编辑状态?
- 再出100分 一定要有个答案 关于控件的动态添加 !!!!!!
- 如何获取当前窗口的标题!!!不是指单一窗口! 窗口是活动的! 要的是当前活动窗口的TEXT值,也就是激活的窗口!!
- 跪求大家帮我写个程序,非常感谢
- 图片打水印 出现“GDI+中发生一般性错误 ” 标题够长!~~~~~~
P.DashStyle = Drawing2D.DashStyle.Dash
Using G As Graphics = Me.CreateGraphics
G.DrawEllipse(P, New Rectangle(0, 0, Me.Width - 1, Me.Height - 1))
End Using
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 pen2 = new Pen(Color.Blue, 12);
pen2.DashStyle = DashStyle.Custom;
pen2.DashPattern = new float[] { 1f, 1f };
Graphics g2 = this.CreateGraphics();
g2.DrawLine(pen2, 10, 150, 500, 150); }
}
}