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");
            }
        }
Exemplo n.º 2
0
        ////////////////////////////////////////////////////////////////////
        /// <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;
        }