# Icon class

Namespace: [Eto.Drawing](https://eto.picoe.ca/api/namespace/eto.drawing.md) · Assembly: [Eto](https://eto.picoe.ca/api/assembly/eto.md)

```cs
[Handler(Icon.IHandler)]
[TypeConverter(IconConverter)]
public class Icon : Image
```

Represents an icon which allows for multiple sizes and resolutions of an image

**Remarks:** The formats supported vary by platform, however all platforms do support loading windows .ico format. Using an icon for things like menus, toolbars, etc are preferred so that each platform can use the appropriate sized image. For High DPI/Retina displays (e.g. on OS X), this will allow using a higher resolution image automatically.

## Constructors

- [Icon](https://eto.picoe.ca/api/type/eto.drawing.icon/ctor.md): (6 overloads) Initializes a new instance of the [Icon](https://eto.picoe.ca/api/type/eto.drawing.icon.md) class with the specified bitmap.

## Properties

- [Frames](https://eto.picoe.ca/api/type/eto.drawing.icon/frames.md): Gets the definition for each frame in this icon.

## Methods

- [FromResource](https://eto.picoe.ca/api/type/eto.drawing.icon/fromresource.md): (2 overloads, static) Loads an icon from an embedded resource of the specified assembly
- [GetFrame](https://eto.picoe.ca/api/type/eto.drawing.icon/getframe.md): Gets the frame with the specified scale that can fit into the `fittingSize` if specified.
- [WithSize](https://eto.picoe.ca/api/type/eto.drawing.icon/withsize.md): (2 overloads) Gets a copy of this Icon with frames scaled to draw within the specified fitting size.

## Inherited Members

- From [Image](https://eto.picoe.ca/api/type/eto.drawing.image.md): [Height](https://eto.picoe.ca/api/type/eto.drawing.image/height.md), [Size](https://eto.picoe.ca/api/type/eto.drawing.image/size.md), [Width](https://eto.picoe.ca/api/type/eto.drawing.image/width.md)
- From [Widget](https://eto.picoe.ca/api/type/eto.widget.md): [ControlObject](https://eto.picoe.ca/api/type/eto.widget/controlobject.md), [Handler](https://eto.picoe.ca/api/type/eto.widget/handler.md), [ID](https://eto.picoe.ca/api/type/eto.widget/id.md), [IsDisposed](https://eto.picoe.ca/api/type/eto.widget/isdisposed.md), [NativeHandle](https://eto.picoe.ca/api/type/eto.widget/nativehandle.md), [Platform](https://eto.picoe.ca/api/type/eto.widget/platform.md), [Properties](https://eto.picoe.ca/api/type/eto.widget/properties.md), [Style](https://eto.picoe.ca/api/type/eto.widget/style.md), [StyleChanged](https://eto.picoe.ca/api/type/eto.widget/stylechanged.md), [Dispose](https://eto.picoe.ca/api/type/eto.widget/dispose.md), [GetCallback](https://eto.picoe.ca/api/type/eto.widget/getcallback.md), [Initialize](https://eto.picoe.ca/api/type/eto.widget/initialize.md), [OnStyleChanged](https://eto.picoe.ca/api/type/eto.widget/onstylechanged.md), [ToString](https://eto.picoe.ca/api/type/eto.widget/tostring.md)
