📄 form1.frm
字号:
VERSION 5.00
Begin VB.Form Form1
BorderStyle = 1 'Fixed Single
Caption = "透明图片"
ClientHeight = 4125
ClientLeft = 45
ClientTop = 330
ClientWidth = 3255
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 4125
ScaleWidth = 3255
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton Command1
Caption = "Start"
Height = 375
Left = 2040
TabIndex = 5
Top = 1800
Width = 1095
End
Begin VB.PictureBox Picture2
BorderStyle = 0 'None
Height = 495
Left = 2640
Picture = "form1.frx":0000
ScaleHeight = 33
ScaleMode = 3 'Pixel
ScaleWidth = 22
TabIndex = 4
Top = 120
Width = 330
End
Begin VB.Timer Timer1
Enabled = 0 'False
Interval = 1
Left = 120
Top = 2160
End
Begin VB.TextBox Text1
Height = 285
Left = 2280
TabIndex = 3
Text = "0"
Top = 720
Width = 495
End
Begin VB.TextBox Text2
Height = 285
Left = 2280
TabIndex = 2
Text = "0"
Top = 1080
Width = 495
End
Begin VB.PictureBox Picture3
BorderStyle = 0 'None
Height = 1800
Left = 600
Picture = "form1.frx":1DF2
ScaleHeight = 120
ScaleMode = 3 'Pixel
ScaleWidth = 121
TabIndex = 1
Top = 2160
Visible = 0 'False
Width = 1815
End
Begin VB.PictureBox Picture1
AutoRedraw = -1 'True
BorderStyle = 0 'None
Height = 1800
Left = 120
Picture = "form1.frx":2760
ScaleHeight = 120
ScaleMode = 3 'Pixel
ScaleWidth = 121
TabIndex = 0
Top = 240
Width = 1815
End
Begin VB.Label Label1
Caption = "X:"
ForeColor = &H8000000D&
Height = 255
Left = 2040
TabIndex = 7
Top = 720
Width = 255
End
Begin VB.Label Label2
Caption = "Y:"
ForeColor = &H8000000D&
Height = 255
Left = 2040
TabIndex = 6
Top = 1080
Width = 255
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Timer1.Enabled = Not Timer1.Enabled
If Timer1.Enabled Then
Command1.Caption = "Stop"
Else
Command1.Caption = "Start"
End If
End Sub
Private Sub Timer1_Timer()
Text1.Text = Int(Text1.Text) + 2
Text2.Text = Int(Text2.Text) + 1
Picture1.PaintPicture Picture3.Picture, 0, 0
PaintTrans Picture1.hdc, Picture2.hdc, Text1.Text, Text2.Text, Picture2.ScaleWidth, Picture2.ScaleHeight
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -