System.Drawing.Icon Class

Represents a Windows icon, which is a small bitmap image that is used to represent an object. Icons can be thought of as transparent bitmaps, although their size is determined by the system.

See Also: Icon Members

Syntax

[System.ComponentModel.TypeConverter(typeof(System.Drawing.IconConverter))]
[System.ComponentModel.Editor("System.Drawing.Design.IconEditor, System.Drawing.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", typeof(System.Drawing.Design.UITypeEditor))]
public sealed class Icon : MarshalByRefObject, ICloneable, IDisposable, System.Runtime.Serialization.ISerializable

Remarks

You can construct System.Drawing.Icon objects from files, streams, or embedded resources. For a list of constructors, see Icon.#ctor(Icon, Size). You can also convert an System.Drawing.Icon to a bitmap by using the Icon.ToBitmap method.

An icon resource can contain multiple icon images. One icon file may contain images in several sizes and color depths. The image that is used in an application depends on the operating system and settings. The following list details the typical sizes for an icon:

Requirements

Namespace: System.Drawing
Assembly: System.Drawing (in System.Drawing.dll)
Assembly Versions: 1.0.3300.0, 1.0.5000.0, 2.0.0.0