VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   2085
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4680
   LinkTopic       =   "Form1"
   ScaleHeight     =   2085
   ScaleWidth      =   4680
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Command2 
      Caption         =   "确定"
      Height          =   315
      Left            =   3660
      TabIndex        =   3
      Top             =   1260
      Width           =   975
   End
   Begin VB.PictureBox Picture1 
      Height          =   1755
      Left            =   960
      Picture         =   "sy10-16.frx":0000
      ScaleHeight     =   1695
      ScaleWidth      =   2295
      TabIndex        =   2
      Top             =   60
      Width           =   2355
      Begin VB.Image Image1 
         BorderStyle     =   1  'Fixed Single
         Height          =   615
         Left            =   300
         Top             =   240
         Width           =   915
      End
   End
   Begin MSComDlg.CommonDialog CommonDialog1 
      Left            =   240
      Top             =   960
      _ExtentX        =   847
      _ExtentY        =   847
      _Version        =   393216
      Filter          =   "位图|*.bmp|GIF|*.gif"
   End
   Begin VB.ComboBox Combo1 
      Height          =   300
      ItemData        =   "sy10-16.frx":0782
      Left            =   3660
      List            =   "sy10-16.frx":078F
      TabIndex        =   1
      Text            =   "平铺"
      Top             =   840
      Width           =   975
   End
   Begin VB.CommandButton Command1 
      Caption         =   "浏览"
      Height          =   315
      Left            =   3660
      TabIndex        =   0
      Top             =   420
      Width           =   975
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Private Sub Combo1_Click()
    Select Case Combo1.ListIndex
    Case 0
    Image1.Width = Picture1.ScaleWidth / 2
    Image1.Height = Picture1.ScaleHeight / 2
    Case 1
    Image1.Width = Picture1.ScaleWidth / 2
    Image1.Height = Picture1.ScaleHeight / 2
    Image1.Left = (Picture1.ScaleWidth - Image1.Width) / 2
    Image1.Top = (Picture1.ScaleHeight - Image1.Height) / 2
    Case 2
    Image1.Stretch = True
    Image1.Left = 150
    Image1.Top = 150
    Image1.Width = Picture1.ScaleWidth - 300
    Image1.Height = Picture1.ScaleHeight - 300
    End Select
End Sub

Private Sub Command1_Click()
    CommonDialog1.ShowOpen
    Image1 = LoadPicture(CommonDialog1.FileName)
End Sub
