Click or drag to resize

SizeFitTo Method

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
)

Parameters

constraint
Type: Eto.DrawingSize
Constraint to fit the new size into

Return Value

Type: Size
The new size with the same aspect ratio with the width/height equal or within the constraint
See Also