vb.net - Convertig an image to an .ICO file without loosing color depth (and without installing additional utilities)? -
In a form I have no ImageList named I'm too lazy to set up an icon editor and edit that logo's icon or am transforming the image into a .ICO file. (Ergh, well, I'm not allowed to install custom utilities.) , I set the window icon to In the About Me box, I do not have a To set the icon and content of the box So far, great, the icon looks great to be made from 100x100 pixels bitmap. A simple "no utility required" way :-) Have a saved icon in .ico file that is Using Saving it mainly For This is VB 10 Express. To take this home, followed the wise teacher, it was edited and transformed there. GIMP @ home at work worked fine, looks good. There is no code-free solution at all: -) MainLogoImageList with a 100x100
Pixel 32-bit colorespeed image This is my app logo.
Icon = IconFromImage (your forms using MainLogoImageList.Images To set the 'icon (0))
onload in the event handler.
picture box no image. The
in OnLoad event, I use
LogoPictureBox.Image = MyMainForm.MainLogoImageList.Images (0) symbol = IconFromImage (MyMainForm.MainLogoImageList.Images (0) )
IconFromImage so get Will it keep color depth when app is loaded as icon? I really want to use the icon that
IconFromImage makes
dim's New FileStream ( "MyAppIcon.ico", FileMode.Append, FileAccess.Write, FileShare.Write) as (S) S.Close (Icon.Save)
OnLoad event handler and loading that VS In the project properties, the file .ico yields and icon dialog as the app icon that clearly turns into 16 colors, and looks awesome.
Comments
Post a Comment