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
)
Public Function GetFrame (
scale As Single,
Optional fittingSize As Nullable(Of Size) = Nothing
) As IconFrame
member GetFrame :
scale : float32 *
?fittingSize : Nullable<Size>
(* Defaults:
let _fittingSize = defaultArg fittingSize null
*)
-> IconFrame
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:
IconFrameThe 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