110,536
社区成员
发帖
与我相关
我的任务
分享
string path = Application.StartupPath + "图片名.jpg";
string path = "图片路径";
Bitmap sourceBmp = Image.FromFile(path) as Bitmap;
Bitmap destBmp = sourceBmp.Clone(new Rectangle(0, 0, 100, 100),
System.Drawing.Imaging.PixelFormat.DontCare);
pictureBox1.Image = destBmp;