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

SystemObject
  KGySoft.DrawingIcons

Namespace:  KGySoft.Drawing
Assembly:  KGySoft.Drawing (in KGySoft.Drawing.dll) Version: 4.7.0
Syntax

public static class Icons

The Icons type exposes the following members.

Properties

  NameDescription
Public propertyStatic memberApplication
Application (small version for the summary) Gets the Application icon displaying a window (Sizes: 256x256, 64x64, 48x48, 32x32, 24x24, 16x16)
Public propertyStatic memberError
Error (small version for the summary) Gets the Error icon displaying a white "X" in a red circle (Sizes: 256x256, 64x64, 48x48, 32x32, 24x24, 20x20, 16x16)
Public propertyStatic memberInformation
Information (small version for the summary) Gets the Information icon displaying a white "i" a blue circle (Sizes: 256x256, 64x64, 48x48, 32x32, 24x24, 20x20, 16x16)
Public propertyStatic memberQuestion
Question (small version for the summary) Gets the Question icon displaying a white "?" in a blue circle (Sizes: 256x256, 64x64, 48x48, 32x32, 24x24, 20x20, 16x16)
Public propertyStatic memberSecurityError
Security Error (small version for the summary) Gets the Security Error icon displaying a red shield with a white "X" (Sizes: 256x256, 48x48, 32x32, 24x24, 16x16)
Public propertyStatic memberSecurityQuestion
Security Question (small version for the summary) Gets the Security Question icon displaying a blue shield with a white "?" (Sizes: 256x256, 48x48, 32x32, 24x24, 16x16)
Public propertyStatic memberSecurityShield
Security Shield (small version for the summary) Gets the Security Shield icon displaying a blue-yellow shield (Sizes: 256x256, 128x128, 48x48, 32x32, 24x24, 16x16, 8x8)
Public propertyStatic memberSecuritySuccess
Security Success (small version for the summary) Gets the Security Success icon displaying a green shield with a white check (Sizes: 256x256, 48x48, 32x32, 24x24, 16x16)
Public propertyStatic memberSecurityWarning
Security Warning (small version for the summary) Gets the Security Warning icon displaying a yellow shield with a black "!" (Sizes: 256x256, 48x48, 32x32, 24x24, 16x16)
Public propertyStatic memberShield
Shield (small version for the summary) Gets the Windows Shield icon displaying a red-green-blue-yellow shield (Sizes: 256x256, 128x128, 48x48, 32x32, 24x24, 16x16, 8x8)
Public propertyStatic memberSystemApplication
Application (small version for the summary) Gets an Icon instance that contains a large and a small Application icon as it is displayed by the current operating system.
In Windows Vista and above sizes are depending on current DPI settings, in Windows XP the icon has always 32x32 and 16x16 image sizes.
Public propertyStatic memberSystemError
Error (small version for the summary) Gets an Icon instance that contains a large and a small Error icon as it is displayed by the current operating system.
In Windows Vista and above sizes are depending on current DPI settings, in Windows XP the icon has always 32x32 and 16x16 image sizes.
Public propertyStatic memberSystemInformation
Information (small version for the summary) Gets an Icon instance that contains a large and a small Information icon as it is displayed by the current operating system.
In Windows Vista and above sizes are depending on current DPI settings, in Windows XP the icon has always 32x32 and 16x16 image sizes.
Public propertyStatic memberSystemQuestion
Question (small version for the summary) Gets an Icon instance that contains a large and a small Question icon as it is displayed by the current operating system.
In Windows Vista and above sizes are depending on current DPI settings, in Windows XP the icon has always 32x32 and 16x16 image sizes.
Public propertyStatic memberSystemShield
Shield (small version for the summary) Gets an Icon instance that contains the Shield icon as it is displayed by the current operating system.
In Windows Vista and above sizes are depending on current DPI settings, in Windows XP the icon has always 48x48, 32x32 and 16x16 image sizes in three different color depths.
Public propertyStatic memberSystemWarning
Warning (small version for the summary) Gets an Icon instance that contains a large and a small Warning icon as it is displayed by the current operating system.
In Windows Vista and above sizes are depending on current DPI settings, in Windows XP the icon has always 32x32 and 16x16 image sizes.
Public propertyStatic memberWarning
Warning (small version for the summary) Gets the Warning icon displaying a black "!" in a yellow triangle (Sizes: 256x256, 64x64, 48x48, 32x32, 24x24, 20x20, 16x16)
Top
Methods

  NameDescription
Public methodStatic memberCombine(Bitmap)
Combines the provided images into a multi-resolution Icon instance.
Public methodStatic memberCombine(Icon)
Combines the provided icons into a multi-resolution Icon instance.
Public methodStatic memberCombine(Boolean, Bitmap)
Combines the provided images into a multi-resolution Icon instance.
Public methodStatic memberCombine(Boolean, Icon)
Combines the provided icons into a multi-resolution Icon instance.
Public methodStatic memberCombine(Bitmap, Color)
Combines the provided images into a multi-resolution Icon instance.
Public methodStatic memberCombine(Bitmap, Color, Boolean)
Combines the provided images into a multi-resolution Icon instance.
Public methodStatic memberFromExtension
Gets the system-associated icon of a file extension.
Public methodStatic memberFromFile(String)
Extracts dual-resolution icons from a file and returns them as separated Icon instances.
Public methodStatic memberFromFile(String, SystemIconSize)
Extracts icons of the specified size from a file and returns them as separated Icon instances.
Public methodStatic memberFromStream(Stream)
Loads an Icon from the specified stream.
Public methodStatic memberFromStream(Stream, Boolean)
Loads an Icon from the specified stream.
Public methodStatic memberGetStockIcon
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.
Top
See Also

Reference