Icons Class

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 anymore.

See the online help to observe the icons visually that are returned by the properties.

Definition

Namespace: KGySoft.Drawing
Assembly: KGySoft.Drawing (in KGySoft.Drawing.dll) Version: 9.2.0
C#
public static class Icons
Inheritance
Object    Icons

Remarks

  Note

When targeting .NET 7.0 or later versions this class is supported on Windows only.

Properties

ApplicationApplication (small version for the summary) Gets the Application icon displaying a window (Sizes: 256x256, 64x64, 48x48, 32x32, 24x24, 16x16)

See the online help for the icon images.
ErrorError (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)

See the online help for the icon images.
InformationInformation (small version for the summary) Gets the Information icon displaying a white "i" in a blue circle (Sizes: 256x256, 64x64, 48x48, 32x32, 24x24, 20x20, 16x16)

See the online help for the icon images.
QuestionQuestion (small version for the summary) Gets the Question icon displaying a white "?" in a blue circle (Sizes: 256x256, 64x64, 48x48, 32x32, 24x24, 20x20, 16x16)

See the online help for the icon images.
SecurityErrorSecurity 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)

See the online help for the icon images.
SecurityQuestionSecurity Question (small version for the summary) Gets the Security Question icon displaying a blue shield with a white "?" (Sizes: 256x256, 48x48, 32x32, 24x24, 16x16)

See the online help for the icon images.
SecurityShieldSecurity Shield (small version for the summary) Gets the Security Shield icon displaying a blue-yellow shield (Sizes: 256x256, 128x128, 48x48, 32x32, 24x24, 16x16, 8x8)

See the online help for the icon images.
SecuritySuccessSecurity 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)

See the online help for the icon images.
SecurityWarningSecurity Warning (small version for the summary) Gets the Security Warning icon displaying a yellow shield with a black "!" (Sizes: 256x256, 48x48, 32x32, 24x24, 16x16)

See the online help for the icon images.
ShieldShield (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)

See the online help for the icon images.
SystemApplicationApplication (small version for the summary) Gets an Icon instance that contains the Application icon as it is displayed by the current operating system.
On Windows Vista and above sizes range from 16x16 to 256x256, on Windows XP the largest resolution is 48x48, and on Linux the icon has always 32x32 and 16x16 image sizes.

See the online help for the icon images.
SystemErrorError (small version for the summary) Gets an Icon instance that contains the Error icon as it is displayed by the current operating system.
On Windows Vista and above sizes range from 16x16 to 256x256, on Windows XP the largest resolution is 48x48, and on Linux the icon has always 32x32 and 16x16 image sizes.

See the online help for the icon images.
SystemInformationInformation (small version for the summary) Gets an Icon instance that contains the Information icon as it is displayed by the current operating system.
On Windows Vista and above sizes range from 16x16 to 256x256, on Windows XP the largest resolution is 48x48, and on Linux the icon has always 32x32 and 16x16 image sizes.

See the online help for the icon images.
SystemQuestionQuestion (small version for the summary) Gets an Icon instance that contains the Question icon as it is displayed by the current operating system.
On Windows Vista and above sizes range from 16x16 to 256x256, on Windows XP the largest resolution is 48x48, and on Linux the icon has always 32x32 and 16x16 image sizes.

See the online help for the icon images.
SystemSecurityErrorSecurity Error (small version for the summary) Gets an Icon instance that contains the Security Error icon as it is displayed by the current operating system.
On Windows XP and on Linux this property returns the same icon as the SecurityError property.

See the online help for the icon images.
SystemSecurityQuestionSecurity Question (small version for the summary) Gets an Icon instance that contains the Security Question icon as it is displayed by the current operating system.
On Windows XP and on Linux this property returns the same icon as the SecurityQuestion property.

See the online help for the icon images.
SystemSecuritySuccessSecurity Success (small version for the summary) Gets an Icon instance that contains the Security Success icon as it is displayed by the current operating system.
On Windows XP and on Linux this property returns the same icon as the SecuritySuccess property.

See the online help for the icon images.
SystemSecurityWarningSecurity Warning (small version for the summary) Gets an Icon instance that contains the Security Warning icon as it is displayed by the current operating system.
On Windows XP and on Linux this property returns the same icon as the SecurityWarning property.

See the online help for the icon images.
SystemShieldShield (small version for the summary) Gets an Icon instance that contains the Shield icon as it is displayed by the current operating system.
On Windows Vista and above sizes range from 16x16 to 256x256, on Windows XP the largest resolution is 48x48, and on Linux the icon has always 32x32 and 16x16 image sizes.

See the online help for the icon images.
SystemWarningWarning (small version for the summary) Gets an Icon instance that contains the Warning icon as it is displayed by the current operating system.
On Windows Vista and above sizes range from 16x16 to 256x256, on Windows XP the largest resolution is 48x48, and on Linux the icon has always 32x32 and 16x16 image sizes.

See the online help for the icon images.
WarningWarning (small version for the summary) Gets the Warning icon displaying a black "!" in a yellow triangle (Sizes: 256x256, 64x64, 48x48, 32x32, 24x24, 20x20, 16x16)

See the online help for the icon images.

Methods

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(IEnumerableBitmap) Combines the provided images into a multi-resolution Icon instance.
Combine(IEnumerableIcon) Combines the provided icons into a multi-resolution Icon instance.
Combine(Bitmap, Color) Combines the provided images into a multi-resolution Icon instance.
Combine(Boolean, IEnumerableBitmap) Combines the provided images into a multi-resolution Icon instance.
Combine(Boolean, IEnumerableIcon) Combines the provided icons into a multi-resolution Icon instance.
Combine(Boolean, Bitmap) Combines the provided images into a multi-resolution Icon instance.
Combine(Boolean, Icon) Combines the provided icons into a multi-resolution Icon instance.
Combine(Bitmap, Color, Boolean) Combines the provided images into a multi-resolution Icon instance.
FromExtension Gets the system-associated icon of a file or an extension.
FromFile(String) Extracts every icon 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.
FromFile(String, Int32) Extracts the icon with the specified integer identifier from a file.
FromStream(Stream) Loads an Icon from the specified stream.
FromStream(Stream, Boolean) Loads an Icon from the specified stream.
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 . On Windows XP use the predefined property members to retrieve system icons.

See Also