How to save icons
-
Hello friends, I'm using Visual Studio 2005. I'm developing an application that extracts icons from .exe and .scr files and saves them into a MS-Access database. I've created a OLE Object field in the database table for the icons. I use the Icon.Save() along with an instance of the MemoryStream class to get raw icon data bytes into an array. My problem is that Icon.Save() method saves the icon as a 16-color image. I want to know how can I save the icon with no quality loss. Also, are there any alternatives to the MemoryStream class? Many thanks in advance.
-
Hello friends, I'm using Visual Studio 2005. I'm developing an application that extracts icons from .exe and .scr files and saves them into a MS-Access database. I've created a OLE Object field in the database table for the icons. I use the Icon.Save() along with an instance of the MemoryStream class to get raw icon data bytes into an array. My problem is that Icon.Save() method saves the icon as a 16-color image. I want to know how can I save the icon with no quality loss. Also, are there any alternatives to the MemoryStream class? Many thanks in advance.
hi this is a good example for loading and saving icons. http://www.codeproject.com/KB/cs/IconLib.aspx regards