我的picturebox看起来像是.PNG文件。
它使白色的部分透明。
甚至穿透“表单”,我就能看到表单背后的内容(比如我的桌面,文件)。
但在Form1.cs设计中,这似乎是正常的。
//card properties and design
this.card.BackColor = System.Drawing.Color.Red;
this.card.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("card.BackgroundImage")));
this.card.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
this.card.Location = new System.Drawing.Point(47, 92);
this.card.Name = "card";
this.card.Size = new System.Drawing.Size(103, 157);
this.card.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
this.card.TabIndex = 2;
this.card.TabStop = false;
this.card.Visible = false;下面是一张没有运行的图片:

第二张图片解释了我的问题所在:

发布于 2020-02-12 04:20:00
这看起来像是一个被设置为TransparencyKey的Color.White。试着清理一下。
https://stackoverflow.com/questions/60180921
复制相似问题