VERSION 5.00
Begin VB.Form Storage2 
   BorderStyle     =   4  'Fixed ToolWindow
   Caption         =   "Storage Picture 2"
   ClientHeight    =   2712
   ClientLeft      =   36
   ClientTop       =   276
   ClientWidth     =   3864
   KeyPreview      =   -1  'True
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   226
   ScaleMode       =   3  'Pixel
   ScaleWidth      =   322
   ShowInTaskbar   =   0   'False
   StartUpPosition =   3  'Windows Default
   Begin VB.PictureBox Picture3 
      Appearance      =   0  'Flat
      AutoRedraw      =   -1  'True
      AutoSize        =   -1  'True
      BackColor       =   &H80000005&
      BorderStyle     =   0  'None
      DragMode        =   1  'Automatic
      ForeColor       =   &H80000008&
      Height          =   2400
      Left            =   0
      ScaleHeight     =   200
      ScaleMode       =   3  'Pixel
      ScaleWidth      =   320
      TabIndex        =   0
      Top             =   288
      Width           =   3840
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "Storage Picture"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   7.8
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   192
      Left            =   0
      TabIndex        =   2
      Top             =   48
      Width           =   1296
   End
   Begin VB.Label Label15 
      Alignment       =   2  'Center
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "0 x 0"
      Height          =   240
      Left            =   1584
      TabIndex        =   1
      Top             =   0
      Width           =   408
   End
End
Attribute VB_Name = "Storage2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
activar KeyCode, Shift, Me
End Sub


Private Sub Form_Load()
Picture = Graphread.Picture

End Sub

Private Sub Picture3_DragDrop(Source As Control, x As Single, Y As Single)
If LCase(Source.Name) = "label4" Then Exit Sub
If Source.Picture = 0 Then
    Picture3.Picture = LoadPicture()
Else
    SavePicture Source.Picture, "tmpimage"
    Picture3.Picture = LoadPicture("tmpimage")
    If Len(Dir("tmpimage")) > 0 Then Kill "tmpimage"
End If
Picture3.Width = Source.Width
Picture3.Height = Source.Height
Label15.Caption = Picture3.Width & " x " & Picture3.Height
End Sub

