Beispiel #1
0
        private void SelectBackground()
        {
            frmSelectBackground f = new frmSelectBackground();

            if (f.ShowDialog() == DialogResult.OK)
            {
                Cover = (Bitmap)Bitmap.FromFile(f.SelectedFile, false);

                ZoomH = 640.00 / Cover.Width;
                ZoomV = 640.00 / Cover.Height;
            }
            else
            {
                Cover = new Bitmap(640, 640);
            }
            pbxCanvas.Invalidate();
        }
Beispiel #2
0
 private void SelectBackground()
 {
     frmSelectBackground f = new frmSelectBackground();
     if (f.ShowDialog() == DialogResult.OK)
     {
         Cover = (Bitmap)Bitmap.FromFile(f.SelectedFile, false);                
         ZoomH = 640.00 / Cover.Width;
         ZoomV = 640.00 / Cover.Height;
     }
     else
     {
         Cover = new Bitmap(640, 640);
     }
     pbxCanvas.Invalidate();
 }