C#自定义数学坐标类
自己定义的数学坐标类,可以直接在Paint事件中调用Graphics画出来,实现方式如下:
protectedoverridevoidOnPaint(PaintEventArgse)
{
base.OnPaint(e);
Graphicsg=CustomCoordinate.GetCoordinate(e.Graphics,
GraphicsUnit.Millimeter,60F,30F,4,2,10);
PenredPen=newPen(Color.Red,0.5F);
g.DrawLine(redPen,0,
下载地址
用户评论
代码可读,传给picture.Graphics显示不出结果
不知道怎么用 用在哪