# IconFrame 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(IconFrame.IHandler)]
public class IconFrame : IControlObjectSource, IHandlerSource
```

Represents a frame in an [Icon](https://eto.picoe.ca/api/type/eto.drawing.icon.md).

**Remarks:** The IconFrame represents a single frame in an Icon. Each IconFrame can have a specific pixel size and scale, which will automatically be chosen based on the display and draw size of the image in various Eto controls. You can load an icon from an .ico, where all frames will have a 1.0 scale (pixel size equals logical size)

## Constructors

- [IconFrame](https://eto.picoe.ca/api/type/eto.drawing.iconframe/ctor.md): (3 overloads) Initializes a new instance of the [IconFrame](https://eto.picoe.ca/api/type/eto.drawing.iconframe.md) class.

## Properties

- [Bitmap](https://eto.picoe.ca/api/type/eto.drawing.iconframe/bitmap.md): Gets the bitmap for this frame.
- [ControlObject](https://eto.picoe.ca/api/type/eto.drawing.iconframe/controlobject.md): Gets the control object for this widget
- [IHandlerSource.Handler](https://eto.picoe.ca/api/type/eto.drawing.iconframe/eto-ihandlersource-handler.md)
- [PixelSize](https://eto.picoe.ca/api/type/eto.drawing.iconframe/pixelsize.md): Gets the pixel size of the frame's bitmap
- [Scale](https://eto.picoe.ca/api/type/eto.drawing.iconframe/scale.md): Gets the scale of this frame. 1.0 means the [IconFrame.Size](https://eto.picoe.ca/api/type/eto.drawing.iconframe/size.md) and [IconFrame.PixelSize](https://eto.picoe.ca/api/type/eto.drawing.iconframe/pixelsize.md) will be equal.
- [Size](https://eto.picoe.ca/api/type/eto.drawing.iconframe/size.md): Gets the logical size of the frame.

## Methods

- [FromControlObject](https://eto.picoe.ca/api/type/eto.drawing.iconframe/fromcontrolobject.md): (static) Creates an instance of the [IconFrame](https://eto.picoe.ca/api/type/eto.drawing.iconframe.md) with the specified native control object.
- [FromResource](https://eto.picoe.ca/api/type/eto.drawing.iconframe/fromresource.md): (static) Creates an instance of the [IconFrame](https://eto.picoe.ca/api/type/eto.drawing.iconframe.md) from an embedded resource.
