我是靠谱客的博主 坦率大雁,最近开发中收集的这篇文章主要介绍vb画图程序代码,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

Private Declare Sub Sleep Lib “kernel32” (ByVal dwMilliseconds As Long)

Private Sub Command1_Click()

Dim i As Long

For i = 0 To 9

Picture1.FontSize = Int(20) + 1
Picture1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
Picture1.Print “■”;

Picture1.FontSize = Int(20) + 1
Picture1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
Picture1.Print “■”;

Picture1.FontSize = Int(20) + 1
Picture1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
Picture1.Print “■”;

Picture1.FontSize = Int(20) + 1
Picture1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
Picture1.Print “■”;

Picture1.FontSize = Int(20) + 1
Picture1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
Picture1.Print “■”;

Picture1.FontSize = Int(20) + 1
Picture1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
Picture1.Print “■”;

Picture1.FontSize = Int(20) + 1
Picture1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
Picture1.Print “■”;

Picture1.FontSize = Int(20) + 1
Picture1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
Picture1.Print “■”;

Picture1.FontSize = Int(20) + 1
Picture1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
Picture1.Print “■”;

Picture1.FontSize = Int(20) + 1
Picture1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
Picture1.Print “■”;

Picture1.FontSize = Int(20) + 1
Picture1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
Picture1.Print “■”;

Picture1.FontSize = Int(20) + 1
Picture1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
Picture1.Print “■”;

Picture1.FontSize = Int(20) + 1
Picture1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
Picture1.Print “■”;

Picture1.FontSize = Int(20) + 1
Picture1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
Picture1.Print “■”;

Picture1.FontSize = Int(20) + 1
Picture1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
Picture1.Print “■”;

Picture1.FontSize = Int(20) + 1
Picture1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
Picture1.Print “■”;

Picture1.FontSize = Int(20) + 1
Picture1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
Picture1.Print “■”;

Picture1.FontSize = Int(20) + 1
Picture1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
Picture1.Print “■”;

Picture1.FontSize = Int(20) + 1
Picture1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
Picture1.Print “■”;

Picture1.FontSize = Int(20) + 1
Picture1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
Picture1.Print “■”;

Picture1.FontSize = Int(20) + 1
Picture1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
Picture1.Print “■”;

Picture1.FontSize = Int(20) + 1
Picture1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
Picture1.Print “■”;

Picture1.FontSize = Int(20) + 1
Picture1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
Picture1.Print “■”;

Picture1.FontSize = Int(20) + 1
Picture1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
Picture1.Print “■”;

Picture1.FontSize = Int(20) + 1
Picture1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
Picture1.Print “■”;

Picture1.FontSize = Int(20) + 1
Picture1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
Picture1.Print “■”;

Picture1.FontSize = Int(20) + 1
Picture1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
Picture1.Print “■”;

Picture1.FontSize = Int(20) + 1
Picture1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
Picture1.Print “■”;

Picture1.FontSize = Int(20) + 1
Picture1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
Picture1.Print “■”;

Picture1.FontSize = Int(20) + 1
Picture1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
Picture1.Print “■”;

Picture1.FontSize = Int(20) + 1
Picture1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
Picture1.Print “■”;

Picture1.FontSize = Int(20) + 1
Picture1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
Picture1.Print “■”

Picture1.FontSize = Int(20) + 1
Picture1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
Picture1.Print “■”;

Picture1.FontSize = Int(20) + 1
Picture1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
Picture1.Print “■”;

Picture1.FontSize = Int(20) + 1
Picture1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
Picture1.Print “■”;

Picture1.FontSize = Int(20) + 1
Picture1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
Picture1.Print “■”;

Picture1.FontSize = Int(20) + 1
Picture1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
Picture1.Print “■”;

Picture1.FontSize = Int(20) + 1
Picture1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
Picture1.Print “■”;

Picture1.FontSize = Int(20) + 1
Picture1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
Picture1.Print “■”;

Picture1.FontSize = Int(20) + 1
Picture1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
Picture1.Print “■”;

Picture1.FontSize = Int(20) + 1
Picture1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
Picture1.Print “■”;

Picture1.FontSize = Int(20) + 1
Picture1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
Picture1.Print “■”;

Picture1.FontSize = Int(20) + 1
Picture1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
Picture1.Print “■”;

Picture1.FontSize = Int(20) + 1
Picture1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
Picture1.Print “■”;

Picture1.FontSize = Int(20) + 1
Picture1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
Picture1.Print “■”;

Picture1.FontSize = Int(20) + 1
Picture1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
Picture1.Print “■”;

Picture1.FontSize = Int(20) + 1
Picture1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
Picture1.Print “■”;

Picture1.FontSize = Int(20) + 1
Picture1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
Picture1.Print “■”;

Picture1.FontSize = Int(20) + 1
Picture1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
Picture1.Print “■”;

Picture1.FontSize = Int(20) + 1
Picture1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
Picture1.Print “■”;

Picture1.FontSize = Int(20) + 1
Picture1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
Picture1.Print “■”;

Picture1.FontSize = Int(20) + 1
Picture1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
Picture1.Print “■”;

Picture1.FontSize = Int(20) + 1
Picture1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
Picture1.Print “■”;

Picture1.FontSize = Int(20) + 1
Picture1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
Picture1.Print “■”;

Picture1.FontSize = Int(20) + 1
Picture1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
Picture1.Print “■”;

Picture1.FontSize = Int(20) + 1
Picture1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
Picture1.Print “■”;

Picture1.FontSize = Int(20) + 1
Picture1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
Picture1.Print “■”;

Picture1.FontSize = Int(20) + 1
Picture1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
Picture1.Print “■”;

Picture1.FontSize = Int(20) + 1
Picture1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
Picture1.Print “■”;

Picture1.FontSize = Int(20) + 1
Picture1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
Picture1.Print “■”;

Picture1.FontSize = Int(20) + 1
Picture1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
Picture1.Print “■”;

Picture1.FontSize = Int(20) + 1
Picture1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
Picture1.Print “■”;

Picture1.FontSize = Int(20) + 1
Picture1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
Picture1.Print “■”;

Picture1.FontSize = Int(20) + 1
Picture1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
Picture1.Print “■”;

Picture1.FontSize = Int(20) + 1
Picture1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
Picture1.Print “■”;

Picture1.FontSize = Int(20) + 1
Picture1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
Picture1.Print “■”

Next

End Sub

Private Sub Command2_Click()
Picture1.Cls
End Sub

Private Sub Command3_Click()
SavePicture Picture1.Image, App.Path & “我的图片.jpeg”
End Sub

Private Sub Command4_Click()
End
End Sub

Private Sub Form_Load()
Picture1.AutoRedraw = True
Picture1.AutoSize = True
End Sub

Private Sub Timer1_Timer()

Call Command1_Click

Sleep 1

Call Command2_Click

Sleep 1

Call Command1_Click

End Sub

最后

以上就是坦率大雁为你收集整理的vb画图程序代码的全部内容,希望文章能够帮你解决vb画图程序代码所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(47)

评论列表共有 0 条评论

立即
投稿
返回
顶部