📄 form1.frm
字号:
VERSION 5.00
Begin VB.Form Form1
BackColor = &H00FF0000&
Caption = "图形魔术变换"
ClientHeight = 6330
ClientLeft = 165
ClientTop = 450
ClientWidth = 7500
LinkTopic = "Form1"
ScaleHeight = 6330
ScaleWidth = 7500
StartUpPosition = 1 '所有者中心
Begin VB.CommandButton Command2
Caption = "原图去反"
Height = 405
Left = 1530
TabIndex = 9
Top = 0
Width = 1530
End
Begin VB.CommandButton Command5
Caption = "目标反与原图"
Height = 405
Left = 6060
TabIndex = 8
Top = 0
Width = 1440
End
Begin VB.CommandButton Command6
Caption = "或非"
Height = 405
Left = 0
TabIndex = 7
Top = 405
Width = 1530
End
Begin VB.CommandButton Command8
Caption = "源图或目标图"
Height = 405
Left = 3060
TabIndex = 6
Top = 405
Width = 1530
End
Begin VB.CommandButton Command9
Caption = "退出"
Height = 405
Left = 4590
TabIndex = 5
Top = 405
Width = 2910
End
Begin VB.CommandButton Command7
Caption = "或"
Height = 405
Left = 1530
TabIndex = 4
Top = 405
Width = 1530
End
Begin VB.CommandButton Command4
Caption = "与"
Height = 405
Left = 4590
TabIndex = 3
Top = 0
Width = 1470
End
Begin VB.CommandButton Command3
Caption = "异或"
Height = 405
Left = 3060
TabIndex = 2
Top = 0
Width = 1530
End
Begin VB.CommandButton Command1
Caption = "原图覆盖"
Height = 405
Left = 0
TabIndex = 1
Top = 0
Width = 1530
End
Begin VB.PictureBox picture1
Appearance = 0 'Flat
AutoRedraw = -1 'True
AutoSize = -1 'True
BackColor = &H80000005&
BorderStyle = 0 'None
ForeColor = &H80000008&
Height = 5595
Left = 0
Picture = "form1.frx":0000
ScaleHeight = 5595
ScaleWidth = 7500
TabIndex = 0
Top = 810
Visible = 0 'False
Width = 7500
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() '原图覆盖效果
Me.Cls
Me.PaintPicture picture1, 0, 0, Me.ScaleWidth, Me.ScaleHeight, _
0, 0, picture1.Width, picture1.Height, vbSrcCopy
End Sub
Private Sub Command2_Click() '原图去反效果
Me.Cls
Me.PaintPicture picture1, 0, 0, Me.ScaleWidth, Me.ScaleHeight, _
0, 0, picture1.Width, picture1.Height, vbNotSrcCopy
End Sub
Private Sub Command3_Click() '异或
Me.Cls
Me.PaintPicture picture1, 0, 0, Me.ScaleWidth, Me.ScaleHeight, _
0, 0, picture1.Width, picture1.Height, vbSrcInvert
End Sub
Private Sub Command4_Click() '与
Me.Cls
Me.PaintPicture picture1, 0, 0, Me.ScaleWidth, Me.ScaleHeight, _
0, 0, picture1.Width, picture1.Height, vbSrcAnd
End Sub
Private Sub Command5_Click() '目标反与原图
Me.Cls
Me.PaintPicture picture1, 0, 0, Me.ScaleWidth, Me.ScaleHeight, _
0, 0, picture1.Width, picture1.Height, vbSrcErase
End Sub
Private Sub Command6_Click() '或非
Me.Cls
Me.PaintPicture picture1, 0, 0, Me.ScaleWidth, Me.ScaleHeight, _
0, 0, picture1.Width, picture1.Height, vbNotSrcErase
End Sub
Private Sub Command7_Click() '或
Me.Cls
Me.PaintPicture picture1, 0, 0, Me.ScaleWidth, Me.ScaleHeight, _
0, 0, picture1.Width, picture1.Height, vbSrcPaint
End Sub
Private Sub Command8_Click() '原图或目标图
Me.Cls
Me.PaintPicture picture1, 0, 0, Me.ScaleWidth, Me.ScaleHeight, _
0, 0, picture1.Width, picture1.Height, vbMergePaint
End Sub
Private Sub Command9_Click()
End
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -