1. Re: Size of Icon (.ico) file - Attn:Bernie Ryan
- Posted by "Greg Haberek" <ghaberek at gmail.com> Oct 17, 2006
- 508 views
> As in SIZEOF_BITMAP, is there any way to get the size of Icon files, provided > icon file handle is available? First off, SIZEOF_BITMAP refers to the size of the BITMAP structure in memory. You can obtain the size of an icon by calling GetIconInfo, which returns an ICONINFO structure, which points to a BITMAP structure, which holds the size of the bitmap for the icon. I would knock up a demo, but I don't have Euphoria or Win32Lib on my computer at work. Perhaps this information can point someone in the right direction. GetIconInfo Function http://msdn.microsoft.com/library/en-us/winui/winui/windowsuserinterface/resources/icons/iconreference/iconfunctions/geticoninfo.asp ICONINFO Structure http://msdn.microsoft.com/library/en-us/winui/winui/windowsuserinterface/resources/icons/iconreference/iconstructures/iconinfo.asp BITMAP Structure http://msdn.microsoft.com/library/en-us/gdi/bitmaps_2h6a.asp ~Greg