home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form WipesForm
- Caption = "Image Wipes"
- ClientHeight = 5985
- ClientLeft = 1770
- ClientTop = 2295
- ClientWidth = 10770
- LinkTopic = "Form1"
- ScaleHeight = 5985
- ScaleWidth = 10770
- Begin VB.CheckBox ClearDestination
- Caption = "Clear destination before wipe"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 210
- Left = 5640
- TabIndex = 12
- Top = 60
- Width = 3030
- End
- Begin VB.CommandButton Exit
- Caption = "E X I T"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 480
- Left = 8400
- TabIndex = 9
- Top = 5400
- Width = 2250
- End
- Begin VB.CommandButton Vertical
- Caption = "Vertical Blinds"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 390
- Left = 7500
- TabIndex = 11
- Top = 4035
- Width = 2055
- End
- Begin VB.CommandButton WipeRight
- Caption = "Wipe From Right"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 390
- Left = 360
- TabIndex = 10
- Top = 4035
- Width = 1935
- End
- Begin VB.CommandButton WipeRightLeft
- Caption = "Wipe Right && Left"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 390
- Left = 2700
- TabIndex = 8
- Top = 3585
- Width = 1935
- End
- Begin VB.CommandButton WipeUpDown
- Caption = "Wipe Up && Down"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 390
- Left = 2700
- TabIndex = 7
- Top = 4035
- Width = 1935
- End
- Begin VB.CommandButton WipeCenter
- Caption = "Wipe From Center"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 390
- Left = 2700
- TabIndex = 6
- Top = 4470
- Width = 1935
- End
- Begin VB.CommandButton StretchBottom
- Caption = "Stretch From Bottom"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 390
- Left = 5055
- TabIndex = 5
- Top = 4035
- Width = 2085
- End
- Begin VB.CommandButton Horizontal
- Caption = "Horizontal Blinds"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 390
- Left = 7500
- TabIndex = 4
- Top = 3585
- Width = 2055
- End
- Begin VB.CommandButton WipeLeft
- Caption = "Wipe From Left"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 390
- Left = 360
- TabIndex = 3
- Top = 3585
- Width = 1935
- End
- Begin VB.CommandButton StretchRight
- Caption = "Stretch From Right"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 390
- Left = 5055
- TabIndex = 2
- Top = 3585
- Width = 2085
- End
- Begin VB.PictureBox Picture2
- Height = 3015
- Left = 5640
- ScaleHeight = 197
- ScaleMode = 3 'Pixel
- ScaleWidth = 317
- TabIndex = 1
- Top = 345
- Width = 4815
- End
- Begin VB.PictureBox Picture1
- Height = 3045
- Left = 360
- Picture = "wipes.frx":0000
- ScaleHeight = 199
- ScaleMode = 3 'Pixel
- ScaleWidth = 303
- TabIndex = 0
- Top = 330
- Width = 4605
- End
- Attribute VB_Name = "WipesForm"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub Exit_Click()
- End
- End Sub
- Private Sub Vertical_Click()
- Dim Stripes As Integer
- Dim i, j As Integer
- Dim StripeHeight As Integer
- Picture2.Cls
- StripeWidth = 20
- Stripes = Picture1.ScaleWidth / StripeWidth
- On Error Resume Next
- For j = 1 To StripeWidth
- For i = 0 To Stripes
- Picture2.PaintPicture Picture1.Picture, i * StripeWidth, 0, _
- j, Picture1.ScaleHeight, _
- i * StripeWidth, 0, _
- j, Picture1.ScaleHeight, &HCC0020
- End Sub
- Private Sub Form_Load()
- Picture2.Width = Picture1.Width
- Picture2.Height = Picture1.Height
- Picture2.Top = Picture1.Top
- End Sub
- Private Sub Picture1_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
- If Button <> 2 Then Exit Sub
- CommonDialog1.Filter = "Images|*.BMP;*.GIF;*.JPG"
- CommonDialog1.Action = 1
- If CommonDialog1.filename = "" Then Exit Sub
- Picture1.Picture = LoadPicture(CommonDialog1.filename)
- Picture2.Width = Picture1.Width
- Picture2.Height = Picture1.Height
- End Sub
- Private Sub Picture2_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
- If Button <> 2 Then Exit Sub
- CommonDialog1.Filter = "Images|*.BMP;*.GIF;*.JPG"
- CommonDialog1.Action = 1
- If CommonDialog1.filename = "" Then Exit Sub
- Picture2.Picture = LoadPicture(CommonDialog1.filename)
- End Sub
- Private Sub StretchRight_Click()
- Dim X
- If ClearDestination.Value Then Picture2.Picture = LoadPicture()
- For X = 1 To Picture1.ScaleWidth Step 3
- Picture2.PaintPicture Picture1.Picture, 0, 0, _
- Picture1.ScaleWidth, Picture1.ScaleHeight, 0, 0, X, _
- Picture1.ScaleHeight, &HCC0020
- Next
- End Sub
- Private Sub WipeLeft_Click()
- Dim X
- If ClearDestination.Value Then Picture2.Picture = LoadPicture()
- For X = 1 To Picture1.ScaleWidth
- Picture2.PaintPicture Picture1.Picture, 0, 0, _
- X, Picture1.ScaleHeight, 0, 0, X, _
- Picture1.ScaleHeight, &HCC0020
- Next
- End Sub
- Private Sub StretchBottom_Click()
- Dim X
- If ClearDestination.Value Then Picture2.Picture = LoadPicture()
- For X = 1 To Picture1.ScaleHeight Step 3
- Picture2.PaintPicture Picture1.Picture, 0, 0, _
- Picture1.ScaleWidth, Picture1.ScaleHeight, 0, 0, _
- Picture1.ScaleWidth, X, &HCC0020
- Next
- End Sub
- Private Sub WipeCenter_Click()
- Dim PWidth, PHeight As Integer
- Dim i As Integer
- If ClearDestination.Value Then Picture2.Picture = LoadPicture()
- If Picture1.ScaleWidth > Picture1.ScaleHeight Then
- PWidth = Picture1.ScaleWidth - Picture1.ScaleHeight
- PHeight = 1
- ElseIf Picture1.ScaleWidth < Picture1.ScaleHeight Then
- PWidth = 1
- PHeight = Picture1.ScaleHeight - Picture1.ScaleWidth
- Else
- PWidth = 1
- PHeight = 1
- End If
- For i = 1 To Picture1.ScaleWidth - PWidth
- Picture2.PaintPicture Picture1.Picture, _
- Int((Picture1.ScaleWidth - PWidth) / 2), Int((Picture1.ScaleHeight - PHeight) / 2), _
- PWidth, PHeight, _
- Int((Picture1.ScaleWidth - PWidth) / 2), Int((Picture1.ScaleHeight - PHeight) / 2), _
- PWidth, PHeight, &HCC0020
- PWidth = PWidth + 1
- PHeight = PHeight + 1
- Next
- End Sub
- Private Sub Horizontal_Click()
- Dim Stripes As Integer
- Dim i, j As Integer
- Dim StripeHeight As Integer
- If ClearDestination.Value Then Picture2.Picture = LoadPicture()
- StripeHeight = 20
- Stripes = Fix(Picture1.ScaleHeight / StripeHeight)
- On Error Resume Next
- For j = 1 To StripeHeight
- For i = 0 To Stripes
- Picture2.PaintPicture Picture1.Picture, 0, i * StripeHeight, _
- Picture1.ScaleWidth, j, _
- 0, i * StripeHeight, _
- Picture1.ScaleWidth, j, &HCC0020
- Next
- Next
- End Sub
- Private Sub WipeRight_Click()
- Dim X As Integer
- If ClearDestination.Value Then Picture2.Picture = LoadPicture()
- For X = 1 To Picture1.ScaleWidth
- Picture2.PaintPicture Picture1.Picture, _
- Picture1.ScaleWidth - X, 0, _
- X, Picture1.ScaleHeight, _
- Picture1.ScaleWidth - X, 0, _
- X, Picture1.ScaleHeight, &HCC0020
- Next
- End Sub
- Private Sub WipeUpDown_Click()
- Dim PWidth, PHeight As Integer
- Dim i As Integer
- If ClearDestination.Value Then Picture2.Picture = LoadPicture()
- PWidth = Picture1.ScaleWidth
- PHeight = 1
- For i = 1 To Picture1.ScaleHeight / 2
- Picture2.PaintPicture Picture1.Picture, _
- 0, (Picture1.ScaleHeight - PHeight) / 2, _
- PWidth, PHeight, _
- 0, (Picture1.ScaleHeight - PHeight) / 2, _
- PWidth, PHeight, &HCC0020
- PHeight = PHeight + 2
- Next
- End Sub
- Private Sub WipeRightLeft_Click()
- Dim PWidth, PHeight As Integer
- Dim i As Integer
- If ClearDestination.Value Then Picture2.Picture = LoadPicture()
- PWidth = 1
- PHeight = Picture1.ScaleHeight
- For i = 1 To Picture1.ScaleWidth / 2
- Picture2.PaintPicture Picture1.Picture, _
- (Picture1.ScaleWidth - PWidth) / 2, 0, _
- PWidth, PHeight, _
- (Picture1.ScaleWidth - PWidth) / 2, 0, _
- PWidth, PHeight, &HCC0020
- PWidth = PWidth + 2
- Next
- End Sub
-