Click or drag to resize

IconFrame Class

Represents a frame in an Icon.
Inheritance Hierarchy
SystemObject
  Eto.DrawingIconFrame

Namespace:  Eto.Drawing
Assembly:  Eto (in Eto.dll) Version: 2.4.0
Syntax
public class IconFrame : IControlObjectSource, IHandlerSource

The IconFrame type exposes the following members.

Constructors
  NameDescription
Public methodIconFrame(Single, Bitmap)
Initializes a new instance of the IconFrame class.
Public methodIconFrame(Single, FuncStream)
Initializes a new instance of the IconFrame class.
Public methodIconFrame(Single, Stream)
Initializes a new instance of the IconFrame class.
Top
Properties
  NameDescription
Public propertyBitmap
Gets the bitmap for this frame.
Public propertyControlObject
Gets the control object for this widget
Public propertyPixelSize
Gets the pixel size of the frame's bitmap
Public propertyScale
Gets the scale of this frame. 1.0 means the Size and PixelSize will be equal.
Public propertySize
Gets the logical size of the frame.
Top
Methods
  NameDescription
Public methodStatic memberFromControlObject
Creates an instance of the IconFrame with the specified native control object.
Public methodStatic memberFromResource
Creates an instance of the IconFrame from an embedded resource.
Top
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)
See Also