如何用PointF类型的两个点画一条线? [英] How to draw a line with two points are PointF type?
本文介绍了如何用PointF类型的两个点画一条线?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个PictureBox,我想画一条线,其中有两个点是Point F (不是Point)类型,该怎么做?谢谢.
p/s:对不起,如果我的问题很简单又很愚蠢!
I have a PictureBox, I want to draw a line with two points are PointF (not Point) type, how to do this? Thanks.
p/s: Sorry you if my question is very easy and stupid!
推荐答案
使用可接受两个PointF结构的Graphics.DrawLine重载:^ ]
Use the Graphics.DrawLine overload that accepts two PointF structures: http://msdn.microsoft.com/en-us/library/aa327557(v=vs.71)[^]
这篇关于如何用PointF类型的两个点画一条线?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文