如何在asp.net C#中调整图像大小 [英] How can resize image in asp.net C#
问题描述
嗨大家好,
我是学生,正在为我的第一学期开发一个项目我需要帮助,如果有人在这里帮助我那么请告诉我如何才能做到这一点
i希望在asp.net中使用c#代码调整图像大小我制作一个代码就是这个
Hi Guys,
am a student and am developing a project for my first semester i need a help please if any one here to help me then please let me how how can i do this
i want to do resize image size with using c# code in asp.net i make a code that is this
string Headerpath = "~/hf_images/" + FileUploadHeader.FileName;
FileUploadHeader.SaveAs(Server.MapPath(Headerpath));
string Footerpath = "~/hf_images/" + FileUploadFooter.FileName;
FileUploadFooter.SaveAs(Server.MapPath(Footerpath));
Event.AddEvent(Convert.ToInt32( Headerpath, Footerpath);
我要做什么我的这个代码有一个两个FileUploader(页眉和页脚)我想调整这两个图像,当我点击保存按钮,并希望在数据库中保存页眉和页脚新大小的图像路径和gf_image文件夹中的新图像,请编辑我的这个代码,知道我怎么能这样做并调整hight:20px;并且widht:40px;请更新我的代码并为我提供正确的代码。
谢谢你
what i want to do with my this code there is a two FileUploader (Header and Footer) i want to resize this both images when i click on save button and also want to save Header and Footer new size image path in database and new image in gf_image folder please edit my this code and know me how can i do this and resize hight:20px; and widht:40px; please update my this code and and provide me proper code for that.
Thank You
推荐答案
我们不在此处提供/编辑代码。
互联网上有足够的文章/示例。在下面的链接中,它们可以帮助您:#b> b
C#中的图像:保存,调整大小并转换为二进制 [ ^ ]
http://www.switchonthecode.com/tutorials/csharp-tutorial-image-editing-saving-裁剪和调整大小 [ ^ ]
We don't give/edit code here.
There are enough articles/examples on internet of this topic. Look at the links below, they can give you a head start:
Image in C#: Save, Resize, and Convert to Binary[^]
http://www.switchonthecode.com/tutorials/csharp-tutorial-image-editing-saving-cropping-and-resizing[^]
这篇关于如何在asp.net C#中调整图像大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!