|
something like:
Bitmap bm = new Bitmap(newWidth, newHeight);
using (Graphics g = Graphics.FromImage(bm))
{
g.InterpolationMode = ??? // I don't recall what enum this is, or the values, set to bicubic if it's offered, or bilinear otherwise.
g.DrawImage(theOriginalImage, 0, 0, theOriginalImage.Width, theOriginalImage.Height, 0, 0, newWidth, newHeight);
}
MemoryStream s = new MemoryStream;
bm.Save(s, ImageType.Gif);
This is all from memory, it almost certainly won't compile, but it's the sort of thing you need to write. Try referring to your textbooks or google for the specifics.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Thank you very much. I will try with this code.
|
|
|
|
|
Hi
How i store all Images into applcation Directroy
how i have to give the path while uploading the image
i want to store images like below Path
~\Image1.jpg
Best regrds
Rameez
|
|
|
|
|
What the hell are you talking about ? You can store images at the root if you want to, what's stopping you ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Index (zero based) must be greater than or equal to zero and less than the size of the argument list.
how to solve this error in sesions
|
|
|
|
|
You seriously think we can help you based on this ? The answer is, check the size of the array before you try to access it, learn to use your debugger, and try to post actual code when you ask for help. If you'd posted code and a real explanation, I'd almost certainly be able to help more.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
i want to create a setup for web based project. as well as i want to know how to configure a database created in sqlserver(in one particular system) to the setup file of that project in another system. It is urgent
|
|
|
|
|
Urgent is a Very String word. refrain from using such words when you post in a Forum because you don't pay us to help you.
You Answer is everywhere in Google. I think this month i have answered this question 8 times in Code Project and other Different Forums. It is wise to google first before you post a question. i think that is a better way to learn. please next time try to google see the results below
http://www.google.co.za/search?hl=en&q=WEB+SETUP+PROJECT+&meta=[^]
Hope it Helps
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
www.ITS.co.za
|
|
|
|
|
Hi,
Generally a Message Box will have only one button 'OK', how to create more number of buttons like ok,cancel etc.. programiticilly.
Regards,
Arpita
|
|
|
|
|
You can't. You have to create your own popup for that.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
You need to create a new window with the required buttons and show it. I think, creating it on a DIV and showing the DIV will also work.
|
|
|
|
|
Hi friends,
Thanks for your reply.. i tried and it is working , pls find code below:
private void button1_Click(object sender, System.EventArgs e)
{
int Result = 0;
Result = (int)MessageBox.Show("This is a Message box!",
"Message Box", MessageBoxButtons.YesNoCancel,
MessageBoxIcon.Information,
MessageBoxDefaultButton.Button1,
MessageBoxOptions.DefaultDesktopOnly);
if (Result == (int)DialogResult.Yes)
{
textBox1.Text = "You clicked Yes";
}
Regards,
Arpita
|
|
|
|
|
Damn, you were asking for windows applications?
|
|
|
|
|
Wow - so the core issue is that you are clueless. This is not ASP.NET code, ask in the right forum in future, you were given the right answers for this forum.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Well, with all due respect, I don't think that's true.
Assuming, by MessageBox, in JavaScript, we mean the alert class, there are two more classes that behave very much like alert. And those are confirm and prompt, except you do get "more buttons" on them
I know the author of the original post confused two concepts, but saying "it can't be done" on webforms is not quite right, either.
The MessageBox class in C# would not work with webforms, agreed.
But there are alternatives (limited though, as they are).
Regards,
Greg
var question = (_2b || !(_2b));
|
|
|
|
|
Greg Chelstowski wrote: But there are alternatives
That is what already suggested, right?
|
|
|
|
|
Erm, sort of, but you never mentioned any modal dialog boxes
Look, I didn't mean to start a war, I just pointed out that web browsers do have their own dialog boxes, which you can bring up with javascript. And two of them resemble, to a remarkable extent, two of the Winform C# MessageBox.Show method overloads.
Let's just drop the subject, it's definitely not worth fighting over this
Regards,
Greg
var question = (_2b || !(_2b));
|
|
|
|
|
Greg Chelstowski wrote: it's definitely not worth fighting over this
Never thought about fighting.
|
|
|
|
|
Well I did!
Cheers.
var question = (_2b || !(_2b));
|
|
|
|
|
Hi sir,
How can i send mail in asp.net.
Can we use encryption algorithms in login page? how?
|
|
|
|
|
M.Ambigai wrote: How can i send mail in asp.net.
Using the classes provided in System.Net.Mail[^]
M.Ambigai wrote: Can we use encryption algorithms in login page?
System.Security.Cryptography has got many classes to work with encryption. What do you mean by using encryption algorithm in login page? Are you trying to encrypt the password?
|
|
|
|
|
yse sir, i have to encrypt my password
|
|
|
|
|
dear friends ,
i need voice mailing project in asp.net 2005
|
|
|
|
|
Why dont you code it yourself ?
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
www.ITS.co.za
|
|
|
|
|
skumar_sect wrote: i need voice mailing project in asp.net 2005
Ok[^]
|
|
|
|