public partial class Form1 : Form{Bitmap topLeft;public Form1(){InitializeComponent();topLeft = new Bitmap(@"I:\新建文件夹\1.bmp");}public void Pa(Graphics g){g.DrawImage(topLeft, 90, 0, topLeft.Width, topLeft.Height);}protected override void OnPaint(PaintEventArgs e){}
3 回答
噜噜哒
TA贡献1784条经验 获得超7个赞
你想要在OnPaint里写什么啊?
protected override void OnPaint(PaintEventArgs e)
{
Pa(e.Graphics);
}
这就画你那图
添加回答
举报
0/150
提交
取消