コード例 #1
0
        public 绘图器 创建绘图器()
        {
            //Console.WriteLine(System.AppDomain.CurrentDomain.BaseDirectory);
            var _绘图器 = new 绘图器(this.CreateGraphics());

            return(_绘图器);
        }
コード例 #2
0
        public 绘图器 创建绘图器()
        {
            Graphics gs   = Graphics.FromImage(背景图像);
            var      _绘图器 = new 绘图器(gs);

            return(_绘图器);
        }
コード例 #3
0
        private void OnPaint(object sender, PaintEventArgs e)
        {
            绘图器 x = 创建绘图器();

            绘图(x);
            e.Graphics.DrawImage(背景图像, new Point(0, 0));
            //Console.WriteLine(背景图像.Width);
            //Console.WriteLine(背景图像.Height);
        }
コード例 #4
0
 public virtual void 绘图(绘图器 HTQ)
 {
 }
コード例 #5
0
        private void OnPaint(object sender, PaintEventArgs e)
        {
            绘图器 x = new 绘图器(e.Graphics);

            绘图(x);
        }