/// <summary> /// Constructs a new PdfBorderArray . /// </summary> public PdfBorderArray(float hRadius, float vRadius, float width, PdfDashPattern dash) : base(new PdfNumber(hRadius)) { Add(new PdfNumber(vRadius)); Add(new PdfNumber(width)); if (dash != null) { Add(dash); } }
public PdfAnnotationBorder(float hRadius, float vRadius, float width, PdfDashPattern dash) : base(new PdfArray(new float[] { hRadius, vRadius, width })) { if (dash != null) { PdfArray dashArray = new PdfArray(); GetPdfObject().Add(dashArray); if (dash.GetDash() >= 0) { dashArray.Add(new PdfNumber(dash.GetDash())); } if (dash.GetGap() >= 0) { dashArray.Add(new PdfNumber(dash.GetGap())); } if (dash.GetPhase() >= 0) { GetPdfObject().Add(new PdfNumber(dash.GetPhase())); } } }