Constructor Rect
Rect(T, T, T, T)
A lightweight, axis-aligned rectangle defined by position and size.
Replaces the former SKImagePyramidRectI (int) and SKImagePyramidRectF (float)
domain-specific types and the (double X, double Y, double Width, double Height) tuples
that previously appeared throughout the ImagePyramid pipeline.
public Rect(T X, T Y, T Width, T Height)
Parameters
XTYTWidthTHeightT
Remarks
Computed edges (Right / Bottom) are intentionally absent from this struct to
maintain netstandard2.0 compatibility without requiring the .NET 7+
System.Numerics.INumber<T> constraint. Compute them inline:
float right = rect.X + rect.Width;
float bottom = rect.Y + rect.Height;