コード例 #1
0
 public dlg_splash(Bitmap bmp, dlg_overlay_base over) : base()
 {
     Visible = false;
     InitializeComponent();
     SetBitmap(bmp);
     overlay = over;
     if (over == null)
     {
         over = new dlg_overlay_base(); overlay = over;
         over = dlg_overlay_base.Create() as dlg_overlay_base; overlay = over;
     }
     overlay.Initialize();
     overlay.Spl = this;
     overlay.SplInit(this);
     Visible = true;
 }
コード例 #2
0
        public dlg_splash(int color, Bitmap bmp, dlg_overlay_base over)
        {
            Visible = false;
            InitializeComponent();
            SetBitmap(bmp);
            overlay = over;
            if (over == null)
            {
                over    = new dlg_overlay_base();
                overlay = over;
                over    = dlg_overlay_base.Create() as dlg_overlay_base; overlay = over;
            }
            overlay.Initialize();
            overlay.Spl = this;
            overlay.SplInit(this);
            Visible = true;
            Graphics joe = Graphics.FromImage(bmp);

            joe.Clear(Color.FromArgb(color));
            joe.Dispose();
        }