home *** CD-ROM | disk | FTP | other *** search
/ Mastering Visual Basic 5 / MasteringVisualBasic5.iso / ch_code / ch06 / picflip / picflip.frm (.txt) next >
Encoding:
Visual Basic Form  |  1997-02-20  |  4.8 KB  |  149 lines

  1. VERSION 5.00
  2. Begin VB.Form WipesForm 
  3.    Caption         =   "Image Rotation"
  4.    ClientHeight    =   4095
  5.    ClientLeft      =   1770
  6.    ClientTop       =   2295
  7.    ClientWidth     =   8055
  8.    LinkTopic       =   "Form1"
  9.    ScaleHeight     =   4095
  10.    ScaleWidth      =   8055
  11.    Begin VB.CommandButton Command3 
  12.       Caption         =   "Copy"
  13.       BeginProperty Font 
  14.          Name            =   "Times New Roman"
  15.          Size            =   11.25
  16.          Charset         =   0
  17.          Weight          =   400
  18.          Underline       =   0   'False
  19.          Italic          =   0   'False
  20.          Strikethrough   =   0   'False
  21.       EndProperty
  22.       Height          =   375
  23.       Left            =   195
  24.       TabIndex        =   6
  25.       Top             =   3450
  26.       Width           =   1890
  27.    End
  28.    Begin VB.CommandButton Command2 
  29.       Caption         =   "Flip Vertical"
  30.       BeginProperty Font 
  31.          Name            =   "Times New Roman"
  32.          Size            =   11.25
  33.          Charset         =   0
  34.          Weight          =   400
  35.          Underline       =   0   'False
  36.          Italic          =   0   'False
  37.          Strikethrough   =   0   'False
  38.       EndProperty
  39.       Height          =   375
  40.       Left            =   4080
  41.       TabIndex        =   5
  42.       Top             =   3450
  43.       Width           =   1890
  44.    End
  45.    Begin VB.CommandButton Command1 
  46.       Caption         =   "Flip Horizontal"
  47.       BeginProperty Font 
  48.          Name            =   "Times New Roman"
  49.          Size            =   11.25
  50.          Charset         =   0
  51.          Weight          =   400
  52.          Underline       =   0   'False
  53.          Italic          =   0   'False
  54.          Strikethrough   =   0   'False
  55.       EndProperty
  56.       Height          =   375
  57.       Left            =   2130
  58.       TabIndex        =   4
  59.       Top             =   3450
  60.       Width           =   1890
  61.    End
  62.    Begin VB.CommandButton Rotate 
  63.       Caption         =   "Flip Both"
  64.       BeginProperty Font 
  65.          Name            =   "Times New Roman"
  66.          Size            =   11.25
  67.          Charset         =   0
  68.          Weight          =   400
  69.          Underline       =   0   'False
  70.          Italic          =   0   'False
  71.          Strikethrough   =   0   'False
  72.       EndProperty
  73.       Height          =   375
  74.       Left            =   6015
  75.       TabIndex        =   3
  76.       Top             =   3450
  77.       Width           =   1890
  78.    End
  79.    Begin VB.CommandButton Exit 
  80.       Caption         =   "E X I T"
  81.       BeginProperty Font 
  82.          Name            =   "Times New Roman"
  83.          Size            =   12
  84.          Charset         =   0
  85.          Weight          =   700
  86.          Underline       =   0   'False
  87.          Italic          =   0   'False
  88.          Strikethrough   =   0   'False
  89.       EndProperty
  90.       Height          =   480
  91.       Left            =   8400
  92.       TabIndex        =   2
  93.       Top             =   5400
  94.       Width           =   2250
  95.    End
  96.    Begin VB.PictureBox Picture2 
  97.       Height          =   2895
  98.       Left            =   4200
  99.       ScaleHeight     =   189
  100.       ScaleMode       =   3  'Pixel
  101.       ScaleWidth      =   232
  102.       TabIndex        =   1
  103.       Top             =   330
  104.       Width           =   3540
  105.    End
  106.    Begin VB.PictureBox Picture1 
  107.       Height          =   2895
  108.       Left            =   360
  109.       Picture         =   "PicFlip.frx":0000
  110.       ScaleHeight     =   189
  111.       ScaleMode       =   3  'Pixel
  112.       ScaleWidth      =   232
  113.       TabIndex        =   0
  114.       Top             =   330
  115.       Width           =   3540
  116.    End
  117. Attribute VB_Name = "WipesForm"
  118. Attribute VB_GlobalNameSpace = False
  119. Attribute VB_Creatable = False
  120. Attribute VB_PredeclaredId = True
  121. Attribute VB_Exposed = False
  122. Private Sub Command1_Click()
  123.         
  124.         Picture2.PaintPicture Picture1.Picture, 0, 0, _
  125.         Picture1.ScaleWidth, Picture1.ScaleHeight, Picture1.ScaleWidth, _
  126.         0, -Picture1.ScaleWidth, Picture1.ScaleHeight, &HCC0020
  127. End Sub
  128. Private Sub Command2_Click()
  129.         
  130.         Picture2.PaintPicture Picture1.Picture, 0, 0, _
  131.         Picture1.ScaleWidth, Picture1.ScaleHeight, 0, _
  132.         Picture1.ScaleHeight, Picture1.ScaleWidth, -Picture1.ScaleHeight, &HCC0020
  133. End Sub
  134. Private Sub Command3_Click()
  135.         
  136.         Picture2.PaintPicture Picture1.Picture, 0, 0, _
  137.         Picture1.ScaleWidth, Picture1.ScaleHeight, 0, 0, _
  138.         Picture1.ScaleWidth, Picture1.ScaleHeight, &HCC0020
  139. End Sub
  140. Private Sub Rotate_Click()
  141.         
  142.         Picture2.PaintPicture Picture1.Picture, 0, 0, _
  143.         Picture1.ScaleWidth, Picture1.ScaleHeight, Picture1.ScaleWidth, _
  144.         Picture1.ScaleHeight, -Picture1.ScaleWidth, -Picture1.ScaleHeight, &HCC0020
  145.         
  146.         
  147.         
  148. End Sub
  149.