ImageZoom

M. Gallant 03/14/2002

ImageZoom is a simple C# forms application that accepts a dragged image file onto the desktop icon for ImageZoom.exe and displays a supported image file (.ico, .gif, .jpg, .bmp) scaled to fit within the current frame size of the Form. The application contains an embedded resource image which is used if the application is started without any arguments or dragged items. Initially the unsized image is displayed. A PictureBox control is added to the Form and the Image property of the PictureBox instance is set to the current image. The PictureBox ClientSize property is set to the current ClientSize of the Form container. The PictureBox SizeMode property is toggled by a mouse click between PictureBoxSizeMode.StretchImage and PictureBoxSizeMode.Normal modes. The Form implements external file Drag/Drop functionality using DataFormats.FileDrop so that another image file can be simply dropped onto the Form and will be loaded and displayed. The executable assembly is digitally signed.