1 System.Drawing.Bitmap objPic,objNewPic;
2 try
3 {
4   objPic = new System.Drawing.Bitmap(strOldPic);
5   int intHeight=(intWidth / objPic.Width) * objPic.Height;
6   objNewPic=new System.Drawing.Bitmap(objPic,intWidth,intHeight);
7   objNewPic.Save(strNewPic);
8
9 }
10 catch(Exception exp){throw exp;}
11 finally
12 {
13   objPic=null;
14   objNewPic=null;
15 }
16 }
17

 

 


资料来源:学网(www.xue5.com),原文地址:http://www.xue5.com/itedu/200802/109565.html

相关文章:

  • 2022-03-02
  • 2022-12-23
  • 2022-12-23
  • 2021-07-20
  • 2021-08-25
  • 2021-12-09
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-26
  • 2022-01-12
  • 2022-12-23
  • 2022-12-23
  • 2022-02-15
  • 2022-12-23
  • 2021-03-31
相关资源
相似解决方案