Table of Contents

Method FromPoints

Namespace
Aspose.CAD
Assembly
Aspose.CAD.dll

FromPoints(PointF, PointF)

Creates a new Rectangle from two points specified. Two verticles of the created Rectangle will be equal to the passed point1 and point2. These would be typically the opposite vertices.

public static RectangleF FromPoints(PointF point1, PointF point2)

Parameters

point1 PointF

The first Point for the new rectangle.

point2 PointF

The second Point for the new rectangle.

Returns

RectangleF

A newly created Rectangle.