我想在线的一端绘制1或2像素大小的圆圈........ [英] I want to draw 1 or 2 pixel size circle at the one end of line........
本文介绍了我想在线的一端绘制1或2像素大小的圆圈........的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在行尾画圆圈
我尝试过:
..........................................
Draw circle at the end of line
What I have tried:
..........................................
推荐答案
有关该主题的一些其他材料,请阅读此CodeProject教程,最后绘制一个带圆圈或矩形的直线: [tut4]绘制圆形和矩形结束的行 [ ^ ]
有关绘图的其他信息,请阅读该作者的其他一些教程。
For some additional material on the subject read this CodeProject tutorial on drawing a line with a circle or rectangle at the end: [tut4] Draw Lines with Circle and Rectangle End[^]
For additional information on drawing read some of the other tutorials by that author.
尝试:
Try:
private void myDrawingPanel_Paint(object sender, PaintEventArgs e)
{
Graphics g = e.Graphics;
g.DrawLine(Pens.Black, 10, 10, 100, 100);
g.DrawEllipse(Pens.Blue, 9, 9, 2, 2);
g.DrawEllipse(Pens.Red, 99, 99, 2, 2);
}
使用:
Graphics.DrawEllipse Method(System.Drawing) [ ^ ]
或者:
图形.FillEllipse方法(System.Drawing) [ ^ ]
Use:
Graphics.DrawEllipse Method (System.Drawing)[^]
Or:
Graphics.FillEllipse Method (System.Drawing)[^]
这篇关于我想在线的一端绘制1或2像素大小的圆圈........的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文