473,385 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Icon

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
5 1302
Oh yea I am using VB.net

Mar 23 '06 #2
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
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
"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
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Terry | last post by:
There are a number of things about using unmanaged resources in Windows Forms programming that is unclear to me. In C++, if you loaded an icon resource using "ExtractIcon()", the resource was...
8
by: Adrian | last post by:
How do I put an icon on a form using code? Thank you.
0
by: kapcreations | last post by:
I have a system tray app which gets the status of a windows service, and displays the appropriate icon for the status of the service in the systray. the problem I am having is the icon disapears...
5
by: IcingDeath via DotNetMonster.com | last post by:
I am building this SQL Server database app in which i can store files. In order to display files I want to have the app show the associated icon for the extension of the file that is in the...
3
by: Nina | last post by:
Hi there, I assigned icon for a window's form using form's Icon property at design time. Now I want to change the icon. I tried to replace the old icon with the new icon using form's Icon...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.