Home All Groups Group Topic Archive Search About
Author
23 Mar 2006 12:03 PM
Dean
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

Author
23 Mar 2006 12:15 PM
Carlos J. Quintero [VB MVP]
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


Show quoteHide quote
"Dean" <simondevrie***@gmail.com> escribió en el mensaje
news:1143115418.799974.67510@i40g2000cwc.googlegroups.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
>
Author
23 Mar 2006 2:31 PM
Herfried K. Wagner [MVP]
"Dean" <simondevrie***@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/>
Author
23 Mar 2006 3:26 PM
Armin Zingler
"Dean" <simondevrie***@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