form1.frm
来自「vb电子书籍」· FRM 代码 · 共 73 行
FRM
73 行
VERSION 5.00
Begin VB.Form Form1
BackColor = &H80000000&
Caption = "point方法的应用"
ClientHeight = 2490
ClientLeft = 60
ClientTop = 345
ClientWidth = 4140
FillColor = &H00FF0000&
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Icon = "Form1.frx":0000
LinkTopic = "Form1"
ScaleHeight = 2490
ScaleWidth = 4140
StartUpPosition = 2 '屏幕中心
Begin VB.PictureBox Picture1
Height = 855
Left = 840
ScaleHeight = 795
ScaleWidth = 2355
TabIndex = 0
Top = 720
Width = 2415
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
BorderStyle = 1 'Fixed Single
Caption = "用point方法获取信息!"
Height = 300
Left = 360
TabIndex = 1
Top = 2160
Width = 2460
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'CODE Manger By BcodeXRose
'##################################################################
'## 过程名称:Form_Click
'## 参数: 无
'##################################################################
Private Sub Form_Click()
Dim i, j As Integer, mcolor As Long
Form1.Scale (0, 0)-(-100, 100)
Scale (-15, 5)-(15, -15)
Picture1.Scale (0, 0)-(100, 100)
Picture1.Print "用POINT方法获取信息"
For i = 1 To 100
For j = 1 To 100
mcolor = Picture1.Point(i, j)
If mcolor = False Then PSet (i, j), mcolor
Next j
PSet (x, y)
Next i
End Sub
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?