Table of Contents

Method FromSize

Namespace
LMKit.Graphics.Geometry
Assembly
LM-Kit.NET.dll

FromSize(double, double, double, double)

Creates a new rectangle from its top-left coordinate and dimensions.

public static Rectangle FromSize(double left, double top, double width, double height)

Parameters

left double

The X-coordinate of the left edge.

top double

The Y-coordinate of the top edge.

width double

The width of the rectangle.

height double

The height of the rectangle.

Returns

Rectangle

A new Rectangle instance defined by the given position and size.