
正文
关于vb.netpen的信息
提示:扫一扫查出行【扫一扫了解最新限行尾号】
复制提示
关于vb.net在picture.box里面画坐标图的
Gets or sets the distance to translate (move) an object along the y-axis.
沿着Y轴移动对象
相关问答
Q1: vb.net2010中如何在窗口中建立画布
'绘制图形的三步曲
'1,获得一个Graphics对象
Dim MyGraphics As Graphics
MyGraphics = Me.CreateGraphics
'2,定义一个Pen对象,用于绘制图形(轮廓线)
Dim MyPen As New Pen(Color.Black)
'3,定义一个Brush对象,用于填充图形(如果需要填充的话)
Dim MyBrush As New SolidBrush(Color.Orange)
MyGraphics.FillEllipse(MyBrush, 200, 200, 100, 100) '绘制一个实心圆,该圆在:直线x=200,y=200,x=200+100,y=200+100所划的矩形区域内
MyGraphics.DrawEllipse(MyPen, 200, 200, 100, 100) '绘制一个空心圆,该圆在:直线x=200,y=200,x=200+100,y=200+100所划的矩形区域内
Q2: vb.net中如何把picturebox定义为画布
定义一个画布vb.netpen,来源于picturebox
Dim huabu As Graphics
huabu = picturebox.CreateGraphics
使用vb.netpen的时候还需要定义画笔
Dim pen As New Pen(Brushes.Black, 1)
然后就可以画图vb.netpen了
huabu.DrawLine(pen, 0, 0, 10, 10)
更多vb.netpen的关于绘图和坐标变换的东西可以参考
Q3: 为什么VB.net 2005使用paint事件没效果?
Paint事件是在控件需要重画时发生,就比如说窗体的Paint事件,只要窗体被其他窗口覆盖后又被重新显示时就会触发Paint事件
没有看到其他代码,暂无法判断哪里有问题
希望回答对你有帮助
Q4: VB.net中如何画图?
VB.net与VB不同。
VB.net已经有专门绘图的类。
可以定义笔刷然后用Drawing类中的方法绘制。
Private Sub DrawEllipse()
Dim myPen As New System.Drawing.Pen(System.Drawing.Color.Red)
Dim formGraphics as System.Drawing.Graphics
formGraphics = Me.CreateGraphics()
formGraphics.DrawEllipse(myPen, New Rectangle(0,0,200,300))
myPen.Dispose()
formGraphics.Dispose()
End Sub
Private Sub DrawRectangle()
Dim myPen As New System.Drawing.Pen(System.Drawing.Color.Red)
Dim formGraphics as System.Drawing.Graphics
formGraphics = Me.CreateGraphics()
formGraphics.DrawRectangle(myPen, New Rectangle(0,0,200,300))
myPen.Dispose()
formGraphics.Dispose()
End Sub
Q5: vb.net窗体绘图问题,Form的Resize事件不能调用以下过程,求解!谢谢
没有问题,可以执行,您是想做下数独吗?好像是数独表格,哈哈
vb.netpen的介绍就聊到这里吧,感谢你花时间阅读本站内容,更多关于、vb.netpen的信息别忘了在本站进行查找喔。








