public readonly SKRectI AspectFit()

in binding/SkiaSharp/MathTypes.cs [569:589]


		public readonly SKRectI AspectFit (SKSizeI size) =>
			Floor (((SKRect)this).AspectFit (size));

		public readonly SKRectI AspectFill (SKSizeI size) =>
			Floor (((SKRect)this).AspectFill (size));

		public static SKRectI Ceiling (SKRect value) =>
			Ceiling (value, false);

		public static SKRectI Ceiling (SKRect value, bool outwards)
		{
			int x, y, r, b;
			checked {
				x = (int)(outwards && value.Width > 0 ? Math.Floor (value.Left) : Math.Ceiling (value.Left));
				y = (int)(outwards && value.Height > 0 ? Math.Floor (value.Top) : Math.Ceiling (value.Top));
				r = (int)(outwards && value.Width < 0 ? Math.Floor (value.Right) : Math.Ceiling (value.Right));
				b = (int)(outwards && value.Height < 0 ? Math.Floor (value.Bottom) : Math.Ceiling (value.Bottom));
			}

			return new SKRectI (x, y, r, b);
		}