c# 改变图片大小
2010-11-09 15:52
155 查看
System.Drawing.Bitmap objPic,objNewPic; try { objPic = new System.Drawing.Bitmap(strOldPic); int intHeight=(intWidth / objPic.Width) * objPic.Height; objNewPic=new System.Drawing.Bitmap(objPic,intWidth,intHeight); objNewPic.Save(strNewPic); } catch(Exception exp){throw exp;} finally { objPic=null; objNewPic=null; } }
资料来源:学网(www.xue5.com),原文地址:http://www.xue5.com/itedu/200802/109565.html
相关文章推荐
- c# picturebox随图片改变大小
- C# 改变图片大小的功能代码片段 (wince5)
- C# - 让窗口随图片自动改变大小
- c# winform下图片二进制存储-改变大小-显示
- C#图像处理(各种旋转、改变大小、柔化、锐化、雾化、底片、浮雕、黑白、滤镜效果,滤波,图像截取) 对图片的处理 : 亮度调整 抓屏 翻转 随鼠标画矩形
- c# 改变图片的大小(w,h)
- c#上传并改变图片大小
- C# WinForm的PictureBox控件图片的拉伸或收缩方式跟随着控件的大小
- C#里WinForm开发中如何实现控件随窗体大小的改变而自动适应其改变
- C# 改变图片尺寸(压缩),Image Resize
- imagecopyresampled()改变图片大小后质量要比imagecopyresized()高。
- 改变图片尺寸大小不改变像素
- java中用Thumbnailator对图片各种处理的方法(可做到对原图片压缩仅改变大小)
- C# 实现拖拉控件改变位置与大小
- java 等比例 改变图片的质量(等大小压缩图片)
- C#中无边框窗体改变大小
- C# 等比压缩图片,返回固定大小并居中
- 如何使用css自动使得图片自己改变大小
- 用ps改变图片分辨率,但是不改变图片大小,上一篇不大适用。
- 用Delphi改变图片的像素,即大小