IconUtilities Methods |
The IconUtilities type exposes the following members.
Name | Description | |
---|---|---|
ClearIconFilePathByExtensionCache |
Clears the icon file path by extension cache.
| |
DestroyIcon |
Destroys an icon and frees any memory the icon occupied.
| |
Dispose |
Disposes the specified bitmaps.
| |
GetIconFilePathForExtension(String) |
Gets the icon file path for a given file extension.
| |
GetIconFilePathForExtension(String, NullableInt32, Boolean) |
Gets the icon file path for a given file extension.
| |
GetLargestBitmap |
Gets the largest bitmap in a list.
| |
GetPreferredSizeBitmap |
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.
| |
LoadBestIcon |
Loads the best icon from a file path.
| |
LoadBestIconForExtension |
Loads the best icon for a given file extension.
| |
LoadIconForExtension |
Loads the icon for a given file extension.
| |
LoadIcons |
Lods all the icons from an icon file path. Supports .ICO and .DLL files.
| |
LoadIconsForExtension(String) |
Loads all icons for a given file extension.
| |
LoadIconsForExtension(String, String) |
Loads all icons for a given file extension.
| |
LoadIconsFromFileUsingShell |
Loads all icons from a file.
| |
LoadIconsFromStream |
Lods all the icons from an .ICO stream.
| |
SaveAsDll(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).
| |
SaveAsDll(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).
| |
SaveAsDll(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).
| |
SaveAsDll(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).
| |
SaveAsIcon(IEnumerableBitmap, Stream) |
Saves multiple bitmaps as a .ICO stream.
| |
SaveAsIcon(IEnumerableBitmap, String) |
Saves multiple bitmaps as a .ICO file.
| |
SaveAsIcon(Bitmap, Stream, IEnumerableInt32) |
Saves a bitmap as a .ICO stream, possibly in multiple sizes.
| |
SaveAsIcon(Bitmap, String, IEnumerableInt32) |
Saves a bitmap as a .ICO file, possibly in multiple sizes.
| |
ToIcon |
Converts a Bitmap to an Icon.
You *must* call ShellUtilities.DestroyIcon on the returned icon handle once you have finished to use it.
| |
UseAsIcon(Bitmap, ActionIcon) |
Uses the bitmap as an Icon.
Ensures allocated resources will be freed.
| |
UseAsIconT(Bitmap, FuncIcon, T) |
Uses the bitmap as an Icon.
Ensures allocated resources will be freed.
|