PeachDrawing.Core

PeachDrawing.Core.Rect

Rect.FromLTRB(double, double, double, double) Method

Creates a Rect structure with upper-left corner and lower-right corner at the specified locations.

public static PeachDrawing.Core.Rect FromLTRB(double left, double top, double right, double bottom);

Parameters

left System.Double

The x-coordinate of the upper-left corner of the rectangular region.

top System.Double

The y-coordinate of the upper-left corner of the rectangular region.

right System.Double

The x-coordinate of the lower-right corner of the rectangular region.

bottom System.Double

The y-coordinate of the lower-right corner of the rectangular region.

Returns

Rect
The new Rect that this method creates.