Fits this size to the specified constraint, keeping the aspect
Namespace:
Eto.Drawing
Assembly:
Eto (in Eto.dll) Version: 2.5.3-dev
Syntax public Size FitTo(
Size constraint
)
Public Function FitTo (
constraint As Size
) As Size
member FitTo :
constraint : Size -> Size
Parameters
- constraint
- Type: Eto.DrawingSize
Constraint to fit the new size into
Return Value
Type:
SizeThe new size with the same aspect ratio with the width/height equal or within the constraint
See Also