-
VB.NET Draw绘图实例并添加文字标注.rar下载
资源介绍
又一个VB.NET Draw绘图实例,可以画圆、直线、椭圆等图形,也可以直接在文字标签输出到图像上,演示了DrawLine、DrawEllipse、DrawRectangle、DrawCurve、DrawLines、DrawString、DrawsForm等。以下是简单的画圆、画椭圆代码:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
'graph.DrawEllipse(mypen1, 50, 50, 100, 100) ' 绘制圆
graph.DrawEllipse(mypen1, rectangle1) ' 绘制圆
graph.DrawEllipse(mypen2, 50, 50, 150, 200) '绘制椭圆
'mypen1.Dispose()
'mypen2.Dispose()
End Sub
- 上一篇: ucinet中文版
- 下一篇: ucinet6论坛版