473,405 Members | 2,185 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,405 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 1303
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: 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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.