picturebox的backColor属性设置成baiColor.Transparent 然后设置picturebox.Parent = 父容器;

2020-08-14 158点热度 2人点赞 阅读全文

using (FileStream fs = new FileStream(@"1.jpg", FileMode.Open, FileAccess.Read)) { System.Drawing.Image image = System.Drawing.Image.FromStream(fs); string width = image.Width.ToString(); string height = image.Height.ToString(); }

2020-08-14 289点热度 2人点赞 阅读全文