index > Visual C# General > convert image to icon

convert image to icon

I want convert from image to icon

thank you




thaer
thaer_r
Hello

Simple make an icon object and save it to a file. Here is the code:

FileStream MyStream = new FileStream("MyIconFile.ico");
Icon MyIcon = Image.FromFile(@"MyImage.bmp");
MyIcon.Save(MyStream);
MyStream.Close();
Nader Elshehabi
thaer_r wrote:

I want convert from image to icon



I you want do it in desing time ... , I use The Gimp , it's free. Open your image and save like .ico extension file.

Regards.




Free Your Mind
overpeer
reply 3

You can use google to search for other answers

 

More Articles

• Convert Hex to Decimals/Long?
• Resize Image => High quality Interpolation => unwanted bord...
• VSTO Reference
• updating window in multithreaded app
• Enable Parent Menu from Custom control in Child Form
• assembly file
• When to use Interface?
• what is the diffrentce bettwen "new" and "virtual&...
• How to stop MDI parent background image being tile
• performance problem
Bookmark and Share
Welcome to Bokebb   New Update  
 

New Articles

• Setting cookies in WebBrowser control???
• VS 2005 C# Debugger Problem on AMD Athlo
• Infragistics web datagrid doubt
• mess up lisbox during looping.
• Comboboxes datasets, text and values
• Declaring control events in XML file
• Wonder Cursor
• Regarding inserting data without using d
• Namespace in C# 2005
• UserControl Terminate or Close Event
• Removing strings in a text file "he
• CodeDomProvider.CreateCompiler - need a
• settingsprovider in dll
• Encrypt string using DES
• Check admin user in AD

Hot Articles

• 3D CUBE with vertices
• Component -- Couple of questions
• Stopping code execution by using System.
• MapPoint - Displaying multiple 'routes'
• Web Browser
• Help [Strong name validation failed for
• How can I use the C code "#include
• How to connect C# to SQL Server database
• Making query in SQL Server - What is the
• Word Control Keystroke Activating C# Focus
• interface implementation versus activex
• ListView Selection
• Inserting \n and or \r into a string to
• Hi everybody ! Help me about Charset of
• Installation and control of a driver fro

Recommend Articles

• Opening file in when clicking treeview n
• Move form without titlebar
• How to: create an enumeration user setting
• Databound TextBox & Null Values
• Beginner help with Regular Expressions a
• WinForm/Textbox - Multiple languages on
• Nested DataGrid View?
• button links
• bindingsource problem
• StreamReader and File Position
• Code generation from DLLs
• [HELP!] How do I add a "print"
• i would information about using imap wit
• StackLayout in java -> in C# ????
• how to create a runtime object