Click here to Skip to main content
15,915,093 members
Home / Discussions / C#
   

C#

 
GeneralRe: Smart Build Pin
blackthunder00124-Mar-04 23:42
blackthunder00124-Mar-04 23:42 
GeneralRe: Smart Build Pin
Heath Stewart25-Mar-04 4:02
protectorHeath Stewart25-Mar-04 4:02 
GeneralDataGrid Control Question Pin
DougW4824-Mar-04 16:54
DougW4824-Mar-04 16:54 
GeneralRe: DataGrid Control Question Pin
ian mariano24-Mar-04 17:28
ian mariano24-Mar-04 17:28 
GeneralRe: DataGrid Control Question Pin
Heath Stewart24-Mar-04 17:31
protectorHeath Stewart24-Mar-04 17:31 
Questiongetting mouse position? Pin
azusakt24-Mar-04 16:29
azusakt24-Mar-04 16:29 
AnswerRe: getting mouse position? Pin
Heath Stewart24-Mar-04 17:24
protectorHeath Stewart24-Mar-04 17:24 
QuestionHow can I save an icon? Pin
Flack24-Mar-04 14:40
Flack24-Mar-04 14:40 
Hello,

In my app a user chooses an icon. I want to save that icon to a file. However, no matter what I try, the image is saved incorrectly. I did some searching and found that there may be some troubles with saving the alpha channel info. I am no expert on images so I have no idea.

All I want to do is save the icon to a file. I tried

<br />
using (StreamWriter swI = new StreamWriter(Application.StartupPath + "/TestI.ico")) <br />
{<br />
	ico.Save(swI.BaseStream);<br />
}<br />


However, the icon is saved in poor quality and when I load it, it looks pretty bad.

Can someone please help me? I just want to save an icon and be able to load it when I need it.

P.S. Is it possible for me to save multiple icons in one file and extract the icons one at a time?

Thanx for the help,
-Flack
AnswerRe: How can I save an icon? Pin
Heath Stewart24-Mar-04 17:21
protectorHeath Stewart24-Mar-04 17:21 
GeneralCapturing ListView scrollbar events Pin
chuck05324-Mar-04 10:45
chuck05324-Mar-04 10:45 
GeneralRe: Capturing ListView scrollbar events Pin
Heath Stewart24-Mar-04 11:24
protectorHeath Stewart24-Mar-04 11:24 
GeneralTray Icon Pin
RickZ24-Mar-04 10:34
RickZ24-Mar-04 10:34 
GeneralRe: Tray Icon Pin
Dave Kreskowiak24-Mar-04 11:08
mveDave Kreskowiak24-Mar-04 11:08 
GeneralRe: Tray Icon Pin
SapiensBwG26-Mar-04 5:41
SapiensBwG26-Mar-04 5:41 
GeneralAssembly - from Unmanaged Pin
Kant24-Mar-04 10:28
Kant24-Mar-04 10:28 
GeneralRe: Assembly - from Unmanaged Pin
Dave Kreskowiak24-Mar-04 10:33
mveDave Kreskowiak24-Mar-04 10:33 
GeneralRe: Assembly - from Unmanaged Pin
Kant24-Mar-04 11:07
Kant24-Mar-04 11:07 
GeneralRe: Assembly - from Unmanaged Pin
Heath Stewart24-Mar-04 11:22
protectorHeath Stewart24-Mar-04 11:22 
GeneralRe: Assembly - from Unmanaged Pin
Jeremy Kimball25-Mar-04 6:16
Jeremy Kimball25-Mar-04 6:16 
GeneralRe: Assembly - from Unmanaged Pin
Heath Stewart25-Mar-04 8:08
protectorHeath Stewart25-Mar-04 8:08 
GeneralRe: Assembly - from Unmanaged Pin
Jeremy Kimball25-Mar-04 9:05
Jeremy Kimball25-Mar-04 9:05 
GeneralRe: Assembly - from Unmanaged Pin
Heath Stewart25-Mar-04 9:35
protectorHeath Stewart25-Mar-04 9:35 
GeneralRe: Assembly - from Unmanaged Pin
Jeremy Kimball25-Mar-04 9:46
Jeremy Kimball25-Mar-04 9:46 
GeneralTo Heath (we talked about this subject before) Pin
profoundwhispers24-Mar-04 9:10
profoundwhispers24-Mar-04 9:10 
GeneralRe: To Heath (we talked about this subject before) Pin
Tom Larsen24-Mar-04 9:14
Tom Larsen24-Mar-04 9:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.