OSIcon v2.0

Rating: No reviews yet
Downloads: 292
Released: Jan 12, 2010
Updated: Jan 12, 2010 by sn4k3
Dev status: Stable Help Icon

Recommended Download

Source Code OSIcon v2.0 Source
source code, 159K, uploaded Jan 12, 2010 - 222 downloads

Other Available Downloads

Application OSIcon v2.0 Sample Application
application, 58K, uploaded Jan 12, 2010 - 70 downloads

Release Notes

  • Added About Class
  • Added better commentaries
  • Added more samples
  • Updated Sample Application to use new Icon Sizes
  • Updated Sample Application to use new library

IconProperties Class
  • Added "Remove" function, to remove a icon from a determinated size
    • Support multi sizes flags (IconReader.IconSize.Small | IconReader.IconSize.Large)
    • Returns a Dictionary<IconReader.IconSize, int> with removed icons, where int is the icon index on ImageList
  • Added three "IsValid" functions
  • bool IsValidEx(IconReader.IconSize size), Same as "IsValid(IconReader.IconSize size)" but check if icon is not NULL too
  • bool IsValid(), Check if that instance contain any icon
  • bool IsValid(IconReader.IconSize size), Check if a icon of a determinated size exsits in that instance
  • Changed "IconsInfo" type from struct to Dictionary<IconReader.IconSize, Shell32.SHFILEINFO>
  • Changed "IconsIndex" type from struct to Dictionary<IconReader.IconSize, int>
  • Changed "Icons" type from struct to Dictionary<IconReader.IconSize, Icon>
  • Implemented a "Tag" object
  • Disposable Class
  • "IconProperties" is now a class, was a struct before

IconManager Class
  • Fixed "AddEx" function to accept add more icons of different sizes
  • Added comentaries
  • Added two "Remove" function, allow removing icons from cache and from thier ImageList
    • bool Remove(string path, bool removeIconFromList), remove all icons
    • bool Remove(string path, IconReader.IconSize iconSize, bool removeIconFromList), remove icons for a especified size only
  • Added private "Add" function, commun actions when adding icons to list (to remove redundancy)
  • Added "IsValidEx" function, same as "IsValid" but return the matched "IconProperties" otherwise return a new instance
  • Added two new constructors
    • public IconManager(bool createSmallIconList, bool createLargeIconList, bool createExtraLargeIconList, bool createJumboIconList)
    • public IconManager(bool createSmallIconList, bool createLargeIconList, bool createExtraLargeIconList, bool createJumboIconList, bool optimizeToOS)
  • Replaced "ImageListSmall" and "ImageListLarge" ImageList by "IImageList" Dictionary<IconReader.IconSize, ImageList>
  • Added "IconSizeAllSupported" readeonly variable, contain all icon sizes supported by the current OS
  • Added "IconManager.IconSizeAll" constant, contain all icon sizes (Small | Large | ExtraLarge | Jumbo)

IconReader Class
  • Changed all functions that contain a "IconReader.IconSize" to support new icon sizes (ExtraLarge, Jumbo)
  • Added "ExtractIconFromResource" function, extract a icon by name from the assembly
  • Added "ExtractIconsFromFile" function, extracts all icons from a file. Returns "Icon[]"
  • Added "ExtractIconFromFileEx" function, identical to ExtractIconFromFile but support bigger sizes and icon information
  • Added two new icon sizes to "IconReader.IconSize"
    • IconReader.Iconsize.ExtraLarge (48x48 px) XP or above supported
    • IconReader.Iconsize.Jumbo (256x256 px) Vista or above supported
  • Renamed function "ExtractIcon" to "ExtractIconFromFile"

About Class
  • Added "ProjectAuthor" constant, my name
  • Added "ProjecWWW" constant, this page url

Reviews for this release

No reviews yet for this release.