火蓝刀锋快播下载,暗香诀,阿册
system.drawing.bitmap img = new system.drawing.bitmap(imgphoto,
int.parse(toimgwidth.tostring()),
int.parse(toimgheight.tostring()));
string strresizepicname = server.mappath(strimgpath) + filepathname + "/_small_" + filesysname;
img.save(strresizepicname); //保存压缩后的图片
filepath = strimgpath + filepathname + "/_small_" + filesysname; //返回压缩后的图片路径
}
}
else
{
if (imgheight > maxheight)
{
float toimgheight1 = maxheight;
float toimgwidth1 = imgwidth / (float)(imgheight / toimgheight1);
system.drawing.bitmap img = new system.drawing.bitmap(imgphoto,
int.parse(toimgwidth1.tostring()),
int.parse(toimgheight1.tostring()));
string strresizepicname = server.mappath(strimgpath) + filepathname + "/_small_" + filesysname;
img.save(strresizepicname);
filepath = strimgpath + filepathname + "/_small_" + filesysname;
}
}
}
return filepath;
#endregion
}
如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复
Net Core Web Api项目与在NginX下发布的方法
asp.net core3.1 引用的元包dll版本兼容性问题解决方案
IdentityServer4实现.Net Core API接口权限认证(快速入门)
ASP.NET Core MVC通过IViewLocationExpander扩展视图搜索路径的实现
网友评论