Click here to Skip to main content
15,891,900 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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

C#
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);


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
Posted
Updated 12-Jun-12 22:15pm
v4

1 solution

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[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900