呵呵,在C#中的面板上画图,没什么技巧难度的,只是以前没用过,现在有需要,找到了资料,就把他放上来。
很简单,就是在Panel上画一个图像,这个图像是从图像文件中读取。
private void PanelImg_Paint(object sender, System.Windows.Forms.PaintEventArgs e)
{
Graphics g = e.Graphics;
Image img = Image.FromFile(Application.StartupPath + "\\IMG\\image");
g.DrawImage(img, 0, 0);
}