Alex's Weblog

Weblog di Ermanno Goletto (Codename Alex - A Learning EXperience)
posts - 438, comments - 3539, trackbacks - 467

My Links

News

Il blog è stato
trasferito al
 seguente link:


DevAdmin Blog

Add my blog to Live

Foto

Curriculum Vitae


Il contenuto di questo blog e di ciascun post viene fornito “così come é”, senza garanzie, e non conferisce alcun diritto. Questo blog riporta il mio personale pensiero che non riflette necessariamente il pensiero del mio datore di lavoro.

Logo Creative Commons Deed


Logo MCTS

Logo MCSA

Logo MCP

Logo Microsoft Certified Business Management Solutions Professional

Microsoft Certified Business Management Solutions Specialist


Logo UGIdotNET UGIdotNET Contributor


Logo UGISS UGISS Contributor


Logo SysAdmin.it SysAdmin.it Staff


Article Categories

Archives

Post Categories

Blogs

Database

Development

Friends

IT

Knowledge Base

Links

MBS

MCP

MVP Sites

User Groups

Virtualization

July 2004 Blog Posts

Generazione di un file ico da un file bmp

Ecco una funzioncina nata da una domanda sul Newsgroup di Vb.Net per generare un file ico da uno bmp. Public Sub BmpToIcon(ByVal fileName As String)    Dim bitmap As System.Drawing.Bitmap = _        New System.Drawing.Bitmap(fileName)    Dim hIcon As IntPtr = bitmap.GetHicon()     Dim icon As System.Drawing.Icon = _        System.Drawing.Icon.FromHandle(hIcon)     Dim stream As IO.Stream = IO.File.OpenWrite( _        System.IO.Path.GetDirectoryName(fileName) & _        System.IO.Path.GetFileNameWithoutExtension(fileName) & ".ico")         icon.Save(stream)         stream.Close()         icon.Dispose()        bitmap.Dispose()End Sub

posted @ Thursday, July 29, 2004 8:50 AM | Feedback (1) | Filed Under [ Code & Snippet .NET Framework ]

Powered by:
Powered By Subtext Powered By ASP.NET