⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 frmimage.frm

📁 Visual Basic 6 大学教程的代码
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmImage 
   Caption         =   "Fig. 9.31: Generating the Inverse of an Image"
   ClientHeight    =   4905
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   6360
   LinkTopic       =   "Form1"
   ScaleHeight     =   327
   ScaleMode       =   3  'Pixel
   ScaleWidth      =   424
   StartUpPosition =   3  'Windows Default
   Begin VB.PictureBox picPicture 
      Height          =   4575
      Left            =   120
      ScaleHeight     =   301
      ScaleMode       =   3  'Pixel
      ScaleWidth      =   301
      TabIndex        =   1
      Top             =   120
      Width           =   4575
   End
   Begin VB.CommandButton cmdInvert 
      Caption         =   "Inverse"
      Height          =   495
      Left            =   4920
      TabIndex        =   0
      Top             =   360
      Width           =   1215
   End
End
Attribute VB_Name = "frmImage"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
' Fig. 9.31
' Generating the inverse of an image
Private Sub Form_Load()
   picPicture.Picture = LoadPicture("d:\images\ch09\cool.bmp")
End Sub

Private Sub cmdInvert_Click()
   Call picPicture.PaintPicture(picPicture.Picture, 0, 0, _
                                , , , , , , vbDstInvert)
   Call SavePicture(picPicture, "d:\images\ch09\" & _
                    "cool_inverse.bmp")
End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -