Table of Contents

Constructor PdfQuadrilateral

Namespace
BitMiracle.Docotic.Pdf
Assembly
BitMiracle.Docotic.Pdf.dll

PdfQuadrilateral(params PdfPoint[])

Initializes a new instance of the PdfQuadrilateral struct.

public PdfQuadrilateral(params PdfPoint[] corners)

Parameters

corners PdfPoint[]

Four points representing vertices of valid quadrilateral.

Remarks

Order of points is important:

  1. The same set of corners can define different concave quadrilaterals. Consider this quadrilateral: (10, 30), (30, 30), (10, 10) and (11, 12). You can simply reorder corners to define different quadrilateral: (10, 30), (10, 10), (11, 12) and (30, 30).
  2. Quadrilaterals are used for text markup annotations (descendants of PdfTextMarkupAnnotation). First and second corners of a quadrilateral define the orientation of the annotation.