Click here to Skip to main content
12,394,788 members (72,533 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C# LINQ ASP.NET4
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);

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

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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[^]
  Permalink  

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160721.1 | Last Updated 24 Feb 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100