I Hope I have the correcet forum here for this question.
What I am basically looking to do is load a image from my solution that I want to use as my page banner, then resize it to a fixed size(much smaller than original) and display the resized image as my page banner.
Does anyone have any solution for my please??
Thanks,
Loading

Deepak Bhatia142 reputationPosted Jul 3, 2010, 7:18 PM EDT
I just didn't read the below post clearly. So you want it for asp.net web page it's very easy, if you are using the html img tag or asp img tag then specify it's ID and add runat server tag.
Example,
Add this in aspx page
<asp:Image ID="imgToBeResized" runat="server" ImageUrl="~/Images/bk.gif" />
Add this code at page load event in cs class
protected void Page_Load(object sender, EventArgs e)
{
imgToBeResized.Width = 300;
imgToBeResized.Height = 200;
}
You will see image automatically resizes
Abhimanyu K VatsaRank #14 · 51.7K reputationPosted Jul 2, 2010, 5:39 AM EDT
your question is not clear. As I think you mean
http://www.c-sharpcorner.com/UploadFile/avmahesh/1778/
thanks
Space Ghost45 reputationPosted Jul 2, 2010, 5:52 AM EDT
thanks,
Deepak Bhatia142 reputationPosted Jul 3, 2010, 7:06 PM EDT
I just want to clear one thing do you want this image resizing for asp.net application or window based application.
Space Ghost45 reputationPosted Jul 4, 2010, 8:39 AM EDT
Youre recommendation workes like a charm!
Thanks again