📄 imagelist.frm
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.Form ImageList
Caption = "ImageList"
ClientHeight = 2910
ClientLeft = 60
ClientTop = 345
ClientWidth = 6975
LinkTopic = "Form1"
ScaleHeight = 2910
ScaleWidth = 6975
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command2
Caption = "退出"
Height = 375
Left = 4200
TabIndex = 4
Top = 2400
Width = 1335
End
Begin VB.CommandButton Command1
Caption = "叠加"
Height = 375
Left = 1200
TabIndex = 3
Top = 2400
Width = 1335
End
Begin VB.PictureBox Picture3
Height = 2175
Left = 2400
ScaleHeight = 2115
ScaleWidth = 2115
TabIndex = 2
Top = 0
Width = 2175
End
Begin VB.PictureBox Picture2
Height = 2175
Left = 4800
ScaleHeight = 2115
ScaleWidth = 2115
TabIndex = 1
Top = 0
Width = 2175
End
Begin VB.PictureBox Picture1
Height = 2175
Left = 0
ScaleHeight = 2115
ScaleWidth = 2115
TabIndex = 0
Top = 0
Width = 2175
End
Begin MSComctlLib.ImageList ImageList1
Left = 600
Top = 2280
_ExtentX = 1005
_ExtentY = 1005
BackColor = -2147483643
ImageWidth = 149
ImageHeight = 144
MaskColor = 12632256
_Version = 393216
BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628}
NumListImages = 2
BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "ImageList.frx":0000
Key = ""
EndProperty
BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "ImageList.frx":1506
Key = ""
EndProperty
EndProperty
End
End
Attribute VB_Name = "ImageList"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
' 载入图像
Private Sub Form_Load()
Picture1.Picture = ImageList1.ListImages(1).Picture
Picture2.Picture = ImageList1.ListImages(2).Picture
End Sub
' 叠加图像
Private Sub Command1_Click()
ImageList1.MaskColor = vbWhite
Picture3.Picture = ImageList1.Overlay(2, 1)
End Sub
' 退出程序
Private Sub Command2_Click()
End
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -