Icons Class | KGy SOFT Drawing Libraries Help |
Provides some icon-related methods as well as properties returning general icons in multi resolution. Unlike SystemIcons, these icons should be disposed when not used any more.
Inheritance Hierarchy
Namespace: KGySoft.Drawing
Assembly: KGySoft.Drawing (in KGySoft.Drawing.dll) Version: 4.6.1
Syntax
public static class Icons
Public NotInheritable Class Icons
public ref class Icons abstract sealed
[<AbstractClassAttribute>] [<SealedAttribute>] type Icons = class end
The Icons type exposes the following members.
Methods
Name | Description | |
---|---|---|
Combine(Bitmap) |
Combines the provided images into a multi-resolution Icon instance.
| |
Combine(Icon) |
Combines the provided icons into a multi-resolution Icon instance.
| |
Combine(Bitmap, Color) |
Combines the provided images into a multi-resolution Icon instance.
| |
FromExtension |
Gets the system-associated icon of a file extension.
| |
FromFile(String) |
Extracts dual-resolution icons from a file and returns them as separated Icon instances.
| |
FromFile(String, SystemIconSize) |
Extracts icons of the specified size from a file and returns them as separated Icon instances.
| |
GetStockIcon |
Tries to get a system stock icon. When there is no icon defined for provided id,
or Windows version is below Vista, this method returns .
In Windows XP use the predefined property members to retrieve system icons.
|
Properties
Name | Description | |
---|---|---|
Application |
Gets the Application icon displaying a window (Sizes: 256x256, 48x48, 32x32, 24x24, 16x16)
| |
Error |
Gets the Error icon displaying a white "X" in a red circle (Sizes: 256x256, 48x48, 32x32, 24x24, 16x16)
| |
Information |
Gets the Information icon displaying a white "i" a blue circle (Sizes: 256x256, 48x48, 32x32, 16x16)
| |
Question |
Gets the Question icon displaying a white "?" in a blue circle (Sizes: 256x256, 64x64, 48x48, 32x32, 16x16)
| |
SecurityError |
Gets the Security Error icon displaying a red shield with a white "X" (Sizes: 256x256, 48x48, 32x32, 24x24, 16x16)
| |
SecurityQuestion |
Gets the Security Question icon displaying a blue shield with a white "?" (Sizes: 256x256, 48x48, 32x32, 24x24, 16x16)
| |
SecurityShield |
Gets the Security Shield icon displaying a blue-yellow shield (Sizes: 256x256, 128x128, 48x48, 32x32, 24x24, 16x16, 8x8)
| |
SecuritySuccess |
Gets the Security Success icon displaying a green shield with a white check (Sizes: 256x256, 48x48, 32x32, 24x24, 16x16)
| |
SecurityWarning |
Gets the Security Warning icon displaying a yellow shield with a black "!" (Sizes: 256x256, 48x48, 32x32, 24x24, 16x16)
| |
Shield |
Gets the Windows Shield icon displaying a red-green-blue-yellow shield (Sizes: 256x256, 128x128, 48x48, 32x32, 24x24, 16x16, 8x8)
| |
SystemApplication |
Gets an Icon instance that contains a large and a small
Application icon as it is stored in the current operating system.
In Windows Vista and above sizes are depending on current DPI settings, in Windows XP they have always 32x32 and 16x16 sizes.
| |
SystemError |
Gets an Icon instance that contains a large and a small
Error icon as it is stored in the current operating system.
In Windows Vista and above sizes are depending on current DPI settings, in Windows XP they have always 32x32 and 16x16 sizes.
| |
SystemInformation |
Gets an Icon instance that contains a large and a small
Information icon as it is stored in the current operating system.
In Windows Vista and above sizes are depending on current DPI settings, in Windows XP they have always 32x32 and 16x16 sizes.
| |
SystemQuestion |
Gets an Icon instance that contains a large and a small
Question icon as it is stored in the current operating system.
In Windows Vista and above sizes are depending on current DPI settings, in Windows XP they have always 32x32 and 16x16 sizes.
| |
SystemShield |
Gets an Icon instance that contains the
Shield icon as it is stored in the current operating system.
In Windows Vista and above icon contains two sizes, which are depending on current DPI settings,
in Windows XP the icon contains multiple resolution and color depths.
| |
SystemWarning |
Gets an Icon instance that contains a large and a small
Warning icon as it is stored in the current operating system.
In Windows Vista and above sizes are depending on current DPI settings, in Windows XP they have always 32x32 and 16x16 sizes.
| |
Warning |
Gets the Warning icon displaying a black "!" in a yellow triangle (Sizes: 256x256, 48x48, 32x32, 16x16)
|
See Also