Click or drag to resize

IconUtilities Methods

The IconUtilities type exposes the following members.

Methods
  NameDescription
Public methodStatic memberClearIconFilePathByExtensionCache
Clears the icon file path by extension cache.
Public methodStatic memberDestroyIcon
Destroys an icon and frees any memory the icon occupied.
Public methodStatic memberDispose
Disposes the specified bitmaps.
Public methodStatic memberGetIconFilePathForExtension(String)
Gets the icon file path for a given file extension.
Public methodStatic memberGetIconFilePathForExtension(String, NullableInt32, Boolean)
Gets the icon file path for a given file extension.
Public methodStatic memberGetLargestBitmap
Gets the largest bitmap in a list.
Public methodStatic memberGetPreferredSizeBitmap
Gets the closest bitmap that matches a given size from a list of bitmaps. At least one of preferredWidth or preferredHeight values must be defined.
Public methodStatic memberLoadBestIcon
Loads the best icon from a file path.
Public methodStatic memberLoadBestIconForExtension
Loads the best icon for a given file extension.
Public methodStatic memberLoadIconForExtension
Loads the icon for a given file extension.
Public methodStatic memberLoadIcons
Lods all the icons from an icon file path. Supports .ICO and .DLL files.
Public methodStatic memberLoadIconsForExtension(String)
Loads all icons for a given file extension.
Public methodStatic memberLoadIconsForExtension(String, String)
Loads all icons for a given file extension.
Public methodStatic memberLoadIconsFromFileUsingShell
Loads all icons from a file.
Public methodStatic memberLoadIconsFromStream
Lods all the icons from an .ICO stream.
Public methodStatic memberSaveAsDll(Stream, String, Int32, Int32, Boolean)
Writes a stream that points to an Icon binary format (possibly containing multiple sizes) into a Win32 resource-only .DLL file. The output format is always PNG / ARGB (32-bit).
Public methodStatic memberSaveAsDll(String, String, Int32, Int32, Boolean)
Writes a .ICO file (possibly containing multiple sizes) into a Win32 resource-only .DLL file. The output icon format is always PNG / ARGB (32-bit).
Public methodStatic memberSaveAsDll(Assembly, String, String, Int32, Int32, Boolean)
Writes a .NET .ICO embedded resource (possibly containing multiple sizes) into a Win32 resource-only .DLL file. The output format is always PNG / ARGB (32-bit).
Public methodStatic memberSaveAsDll(Bitmap, String, IEnumerableInt32, Int32, Int32, Boolean)
Writes a bitmap as an Icon into a Win32 resource-only .DLL file. The icon may be saved in multiple sizes. The output format is always ARGB (32-bit).
Public methodStatic memberSaveAsIcon(IEnumerableBitmap, Stream)
Saves multiple bitmaps as a .ICO stream.
Public methodStatic memberSaveAsIcon(IEnumerableBitmap, String)
Saves multiple bitmaps as a .ICO file.
Public methodStatic memberSaveAsIcon(Bitmap, Stream, IEnumerableInt32)
Saves a bitmap as a .ICO stream, possibly in multiple sizes.
Public methodStatic memberSaveAsIcon(Bitmap, String, IEnumerableInt32)
Saves a bitmap as a .ICO file, possibly in multiple sizes.
Public methodStatic memberToIcon
Converts a Bitmap to an Icon. You *must* call ShellUtilities.DestroyIcon on the returned icon handle once you have finished to use it.
Public methodStatic memberUseAsIcon(Bitmap, ActionIcon)
Uses the bitmap as an Icon. Ensures allocated resources will be freed.
Public methodStatic memberUseAsIconT(Bitmap, FuncIcon, T)
Uses the bitmap as an Icon. Ensures allocated resources will be freed.
Top
See Also