我想让两个或更多PictureBox
与透明背景重叠,但如果我这样做,我只会看到一个图像:
我这样创建我的PictureBox
es:
PictureBox pb1 = new PictureBox();
pb1.Size = new Size(32, 32);
pb1.Location = new Point(0,0);
pb1.Image = Image.FromFile("../Graphics/Grounds/ground.png");
pb1.Visible = true;
PictureBox pb2 = new PictureBox();
pb2.Size = new Size(32, 32);
pb2.Location = new Point(0,0);
pb2.Image = Image.FromFile("../Graphics/Grounds/human.png");
pb2.Visible = true;
后来我将这两个PictureBox
es 添加到我的Panel
:
panel1.Controls.Add(pb1);
panel1.Controls.Add(pb2);
那么为什么它只显示一个PictureBox
呢?