VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "VB6 例10-11 Point方法的应用"
   ClientHeight    =   2505
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4545
   DrawWidth       =   2
   BeginProperty Font 
      Name            =   "Wingdings"
      Size            =   42
      Charset         =   2
      Weight          =   400
      Underline       =   0   'False
      Italic          =   0   'False
      Strikethrough   =   0   'False
   EndProperty
   LinkTopic       =   "Form1"
   ScaleHeight     =   2505
   ScaleWidth      =   4545
   StartUpPosition =   3  '窗口缺省
   Begin VB.PictureBox Picture1 
      BackColor       =   &H00C0C0C0&
      DrawWidth       =   2
      BeginProperty Font 
         Name            =   "黑体"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   120
      ScaleHeight     =   315
      ScaleWidth      =   2535
      TabIndex        =   0
      Top             =   1980
      Width           =   2595
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Click()
    Dim i, j As Integer, mcolor As Long
    Form1.Scale (0, 0)-(100, 100)
    Picture1.Scale (0, 0)-(100, 100)
    Picture1.Cls
    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
    Next i
End Sub

