System.Drawing.Icon
public sealed class Icon : MarshalByRefObject, ICloneable, IDisposable, ISerializable, IIcon, IHandle<HICON>
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.
namespace System.Drawing
{
public sealed class Icon : MarshalByRefObject, ICloneable, IDisposable, ISerializable
{
public IntPtr Handle { get; }
HICON Handle { get; }
public int Height { get; }
public Size Size { get; }
public int Width { get; }
public Icon(string fileName);
public Icon(string fileName, Size size);
public Icon(string fileName, int width, int height);
public Icon(Icon original, Size size);
public Icon(Icon original, int width, int height);
public Icon(Type type, string resource);
public Icon(Stream stream);
public Icon(Stream stream, Size size);
public Icon(Stream stream, int width, int height);
public static Icon ExtractAssociatedIcon(string filePath);
public object Clone();
public void Dispose();
public static Icon FromHandle(IntPtr handle);
public Bitmap ToBitmap();
public void Save(Stream outputStream);
public static Icon ExtractIcon(string filePath, int id, int size);
public static Icon ExtractIcon(string filePath, int id, bool smallIcon = false);
}
}