Ejemplo n.º 1
0
 // Browse file
 private void selectfile_Click(object sender, EventArgs e)
 {
     // Browse for file
     if (browsefile.ShowDialog(this) == DialogResult.OK)
     {
         // Set this file as background
         backgroundname   = browsefile.FileName;
         backgroundsource = GridSetup.SOURCE_FILE;
         ImageData img = new FileImage(Path.GetFileNameWithoutExtension(backgroundname), backgroundname, false, 1.0f, 1.0f);
         General.DisplayZoomedImage(backgroundimage, new Bitmap(img.GetBackgroundBitmap()));
         img.Dispose();
     }
 }
Ejemplo n.º 2
0
 // Browse file
 private void selectfile_Click(object sender, EventArgs e)
 {
     // Browse for file
     if (browsefile.ShowDialog(this) == DialogResult.OK)
     {
         // Set this file as background
         backgroundname = browsefile.FileName;
         ImageData img = new FileImage(-1, backgroundname);
         img.LoadImage();
         General.DisplayZoomedImage(backgroundimage, new Bitmap(img.GetBitmap()));
         img.Dispose();
     }
 }