private static LineCap toGdiLineCap(PdfLineCap lineCap) { switch (lineCap) { case PdfLineCap.ButtEnd: return(LineCap.Flat); case PdfLineCap.Round: return(LineCap.Round); case PdfLineCap.ProjectingSquare: return(LineCap.Square); default: throw new InvalidOperationException("We should never be here"); } }
//////////////////////////////////////////////////////////////////// /// <summary> /// Set line cap /// </summary> /// <param name="LineCap">Line cap enumeration</param> //////////////////////////////////////////////////////////////////// public void SetLineCap( PdfLineCap LineCap ) { ContentsString.AppendFormat("{0} J\n", (Int32) LineCap); return; }