home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form Form1
- Caption = "Image Exchange through the Clipboard"
- ClientHeight = 5340
- ClientLeft = 60
- ClientTop = 345
- ClientWidth = 6510
- LinkTopic = "Form1"
- PaletteMode = 2 'Custom
- ScaleHeight = 5340
- ScaleWidth = 6510
- StartUpPosition = 3 'Windows Default
- Begin VB.CommandButton Command4
- Caption = "Draw on Image"
- BeginProperty Font
- Name = "Tahoma"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 405
- Left = 4035
- TabIndex = 5
- Top = 1635
- Width = 2310
- End
- Begin VB.CommandButton Command3
- Caption = "Load Image"
- BeginProperty Font
- Name = "Tahoma"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 405
- Left = 4035
- TabIndex = 4
- Top = 1140
- Width = 2355
- End
- Begin VB.CommandButton Command2
- Caption = "Copy From Clopboard"
- BeginProperty Font
- Name = "Tahoma"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 405
- Left = 4020
- TabIndex = 3
- Top = 4770
- Width = 2355
- End
- Begin VB.PictureBox Picture2
- AutoRedraw = -1 'True
- Height = 2400
- Left = 90
- ScaleHeight = 2340
- ScaleWidth = 3675
- TabIndex = 2
- Top = 2790
- Width = 3735
- End
- Begin VB.CommandButton Command1
- Caption = "Copy To Clipboard"
- BeginProperty Font
- Name = "Tahoma"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 405
- Left = 4020
- TabIndex = 1
- Top = 2145
- Width = 2355
- End
- Begin VB.PictureBox Picture1
- AutoRedraw = -1 'True
- ForeColor = &H00FFFFFF&
- Height = 2400
- Left = 90
- ScaleHeight = 2340
- ScaleWidth = 3675
- TabIndex = 0
- Top = 135
- Width = 3735
- End
- Attribute VB_Name = "Form1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub Command1_Click()
- Clipboard.Clear
- Clipboard.SetData Picture1.Image, vbCFBitmap
- End Sub
- Private Sub Command2_Click()
- If Clipboard.GetFormat(vbCFBitmap) Then
- Picture2.Picture = Clipboard.GetData()
- Else
- MsgBox "The clipboard doesn't contain image data"
- End If
- End Sub
- Private Sub Command3_Click()
- Picture1.Picture = LoadPicture(App.Path + "\planets.bmp")
- Form1.Refresh
- End Sub
- Private Sub Command4_Click()
- Picture1.DrawWidth = 2
- Picture1.Line (100, 100)-(3200, 500), , B
- Picture1.DrawWidth = 1
- Picture1.Circle (1000, 1500), 750
- Picture1.Circle (1000, 1500), 800
- Picture1.CurrentX = 200
- Picture1.CurrentY = 200
- Picture1.Print "Picture and Image Properties"
- End Sub
-