Rectangle.fromPoints Method¶
Module: Rectangle
Definition¶
Creates a quadrangle from 4 points.
@staticmethod
from_points(top_left: Point, top_right: Point, bottom_right: Point, bottom_left: Point) -> Rectangle
Parameters
Returns
The newly created rectangle.
Exceptions
An error has occurred during Document Library execution.
static Rectangle fromPoints(Point topLeft, Point topRight, Point bottomRight, Point bottomLeft)
Parameters
Returns
The newly created rectangle.
Exceptions
An error has occurred during Document Library execution.
public static Rectangle FromPoints(Point topLeft, Point topRight, Point bottomRight, Point bottomLeft)
Parameters
Returns
The newly created rectangle.
Exceptions
An error has occurred during Document Library execution.
public static Rectangle fromPoints(Point topLeft, Point topRight, Point bottomRight, Point bottomLeft) throws DocumentException
Parameters
Returns
The newly created rectangle.
Exceptions
An error has occurred during Document Library execution.
public static func fromPoints(topLeft: Point, topRight: Point, bottomRight: Point, bottomLeft: Point) throws -> Rectangle
Parameters
Returns
The newly created rectangle.
Exceptions
An error has occurred during Document Library execution.
int id3DocumentRectangle_FromPoints (
ID3_DOCUMENT_RECTANGLE hRectangle,
const id3DocumentPoint * sTopLeft,
const id3DocumentPoint * sTopRight,
const id3DocumentPoint * sBottomRight,
const id3DocumentPoint * sBottomLeft)
Parameters
hRectangle
ID3_DOCUMENT_RECTANGLEin Handle to the Rectangle object.sTopLeft
const id3DocumentPoint *in Top-left corner of the quadrangle.sTopRight
const id3DocumentPoint *in Top-right corner of the quadrangle.sBottomRight
const id3DocumentPoint *in Bottom-right corner of the rectangle.sBottomLeft
const id3DocumentPoint *in Bottom-left corner of the rectangle.
Returns