By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,524 Members | 1,519 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,524 IT Pros & Developers. It's quick & easy.

Icon

P: n/a
Hi everyone,

Does anyone know how to save an icon I know how to save a text file but
I don't know how to creat a icon file.

OR

Does anyone knows how to save an image like if I load a image then I
strech that image and then when I click Save it would save the image in
"C:"

Could you please tell me how to do it, it will trill my little heart!

Dean

Mar 23 '06 #1
Share this Question
Share on Google+
5 Replies


P: n/a
Oh yea I am using VB.net

Mar 23 '06 #2

P: n/a
You have Image.Save(...), Bitmap.Save(...), Icon.Save(...). Some Save
methods requires a filename while others require an output stream. See the
docs.

--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio
You can code, design and document much faster:
http://www.mztools.com
"Dean" <si************@gmail.com> escribió en el mensaje
news:11*********************@i40g2000cwc.googlegro ups.com...
Hi everyone,

Does anyone know how to save an icon I know how to save a text file but
I don't know how to creat a icon file.

OR

Does anyone knows how to save an image like if I load a image then I
strech that image and then when I click Save it would save the image in
"C:"

Could you please tell me how to do it, it will trill my little heart!

Dean

Mar 23 '06 #3

P: n/a
Ok So maby I don't know the code to put in text so well (I coppied it
from a book ) can you please give me the full code??

Mar 23 '06 #4

P: n/a
"Dean" <si************@gmail.com> schrieb:
Does anyone know how to save an icon I know how to save a text file but
I don't know how to creat a icon file.
Check out the 'Icon' class and its 'Save' method.
Does anyone knows how to save an image like if I load a image then I
strech that image and then when I click Save it would save the image in
"C:"


You are certainly looking for the 'Bitmap' class.

Resizing an image with a certain interpolation mode
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=interpolationmode&lang=en>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Mar 23 '06 #5

P: n/a
"Dean" <si************@gmail.com> schrieb
Hi everyone,

Does anyone know how to save an icon I know how to save a text file
but I don't know how to creat a icon file.
System.Drawing.Icon.Save
OR

Does anyone knows how to save an image like if I load a image then I
strech that image and then when I click Save it would save the image
in "C:"


Use image.fromfile to load the image. Create a new bitmap in the destination
size. Use graphics.fromimage to get create a graphics object to draw the
first image on. Save the destination image by calling it's save method.
Armin

Mar 23 '06 #6

This discussion thread is closed

Replies have been disabled for this discussion.