示例#1
0
        private void tmrMain_Tick(object sender, EventArgs e)
        {
            Bitmap bmp = new Bitmap(modbit);

            tmrmr += 2;
            if (tmrmr > bmp.Height - 12)
            {
                tmrmr = 0;
            }

            Refregerator.DoCollized(tmrmr, ref bmp);
            pbMain.Image = bmp;
        }
示例#2
0
        private void frmAbout_Load(object sender, EventArgs e)
        {
            SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
            modbit = new Bitmap(pbMain.Image);
            Refregerator.Prepare(ref modbit);

            Graphics gr = Graphics.FromImage(modbit);

            gr.DrawString("      " + AssemblyProduct + "\n" + AssemblyDescription + "\n     " + String.Format("Version {0}", AssemblyVersion), new Font(FontFamily.GenericMonospace, 9), Brushes.LightBlue, new PointF(60, 180));

            pbMain.Image = modbit;
            tmrMain.Start();
        }