Click or drag to resize

IconGetFrame Method

Gets the frame with the specified scale that can fit into the fittingSize if specified.

Namespace:  Eto.Drawing
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
public IconFrame GetFrame(
	float scale,
	Nullable<Size> fittingSize = null
)

Parameters

scale
Type: SystemSingle
Logical scale to find for, 1 for normal size, 2 for retina, etc.
fittingSize (Optional)
Type: SystemNullableSize
Fitting size that the icon will be drawn to, if known.

Return Value

Type: IconFrame
The frame that is the closest match for the specified scale and fitting size.
Remarks
This can be used to determine which frame should be used to draw to the screen, based on the desired logical pixel scale and final drawn size of the icon.
See Also