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
#Initializes a new instance of the IconFrame class.
Properties
ControlObject
#Gets the control object for this widget
Value: The control object for the widget
Implements: ControlObject
Scale
#Remarks: When loading from an .ico, all frames will get a scale of 1.0.
Value: The scale of this frame.
Methods
FromControlObject
#Creates an instance of the IconFrame with the specified native control object.
Remarks: This is used by platform implementations to create instances of this class with the appropriate control object. This is not intended to be called directly.
Parameters:
| scale (float) | Scale of logical to physical pixels. |
| controlObject (object) | Native control object. |
Returns: A new instance of the IconFrame with the native control object and scale.
FromResource
#[MethodImpl(MethodImplOptions.NoInlining)]
public static IconFrame FromResource(float scale, string resourceName, Assembly assembly = null)
Creates an instance of the IconFrame from an embedded resource.