用vb制作一个简单画板,要求很简单 30
小弟分不多...希望懂vb的人帮帮我~~~就是制作一个画板程序========================功能包括:1.鼠标按住左键,可以画出轨迹2.轨迹粗细或大小可...
小弟分不多...希望懂vb的人帮帮我~~~就是制作一个画板程序========================功能包括:1.鼠标按住左键,可以画出轨迹2.轨迹粗细或大小可以选择3.可以清除轨迹4.带橡皮擦功能5.点击保存能够把画出的图片保存下来==========================请大家帮帮忙 ~~~~这里写不下,可以发到我的邮箱~谢谢~~860485645@qq.com
还要可以改变画板的前景色。 展开
还要可以改变画板的前景色。 展开
展开全部
Dim yanse
Dim xiankuan
Private Sub Command2_Click()
Picture1.Cls
End Sub
Private Sub Command3_Click()
SavePicture Picture1.Image, App.Path & "\aa.bmp"
End Sub
Private Sub Form_Load()
xiankuan = 50
End Sub
Private Sub Command1_Click(Index As Integer)
yanse = Command1(Index).BackColor
End Sub
Private Sub Option1_Click(Index As Integer)
xiankuan = 50
Select Case Index
Case 0
k = 1
Case 1
k = 3
Case 2
k = 5
Case 3
k = 8
Case 4
k = 10
Case 5
k = 15
End Select
xiankuan = xiankuan * k
End Sub
Private Sub Picture1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 1 Then
a = X
b = Y
Picture1.Line (a, b)-(X + xiankuan, Y + xiankuan), yanse, BF
a = X
b = Y
End If
End Sub
Dim xiankuan
Private Sub Command2_Click()
Picture1.Cls
End Sub
Private Sub Command3_Click()
SavePicture Picture1.Image, App.Path & "\aa.bmp"
End Sub
Private Sub Form_Load()
xiankuan = 50
End Sub
Private Sub Command1_Click(Index As Integer)
yanse = Command1(Index).BackColor
End Sub
Private Sub Option1_Click(Index As Integer)
xiankuan = 50
Select Case Index
Case 0
k = 1
Case 1
k = 3
Case 2
k = 5
Case 3
k = 8
Case 4
k = 10
Case 5
k = 15
End Select
xiankuan = xiankuan * k
End Sub
Private Sub Picture1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 1 Then
a = X
b = Y
Picture1.Line (a, b)-(X + xiankuan, Y + xiankuan), yanse, BF
a = X
b = Y
End If
End Sub
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
AiPPT
2024-09-19 广告
2024-09-19 广告
随着AI技术的飞速发展,如今市面上涌现了许多实用易操作的AI生成工具1、简介:AiPPT: 这款AI工具智能理解用户输入的主题,提供“AI智能生成”和“导入本地大纲”的选项,生成的PPT内容丰富多样,可自由编辑和添加元素,图表类型包括柱状图...
点击进入详情页
本回答由AiPPT提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询