110,535
社区成员
发帖
与我相关
我的任务
分享
Bitmap source = new Bitmap(@"E:\4.1\209\mobile.jpg");
Bitmap newbitmap=new Bitmap(source.Width,source.Height/2);
Graphics g=Graphics.FromImage(newbitmap);
g.DrawImage(source,0,0);
g.Dispose();
newbitmap.Save(@"E:\4.1\209\mobile1.jpg", System.Drawing.Imaging.ImageFormat.Jpeg);
newbitmap.Dispose();
source.Dispose();