public 绘图器 创建绘图器() { //Console.WriteLine(System.AppDomain.CurrentDomain.BaseDirectory); var _绘图器 = new 绘图器(this.CreateGraphics()); return(_绘图器); }
public 绘图器 创建绘图器() { Graphics gs = Graphics.FromImage(背景图像); var _绘图器 = new 绘图器(gs); return(_绘图器); }
private void OnPaint(object sender, PaintEventArgs e) { 绘图器 x = 创建绘图器(); 绘图(x); e.Graphics.DrawImage(背景图像, new Point(0, 0)); //Console.WriteLine(背景图像.Width); //Console.WriteLine(背景图像.Height); }
public virtual void 绘图(绘图器 HTQ) { }
private void OnPaint(object sender, PaintEventArgs e) { 绘图器 x = new 绘图器(e.Graphics); 绘图(x); }