Beispiel #1
0
        internal ShapeContext(ContentStream contentStream, PageResources resources)
        {
            _contentStream = contentStream;

            _contentStream.SaveState();

            State = new GraphicsState(resources);
        }
Beispiel #2
0
        private void _startPath()
        {
            _contentStream.SaveState();

            _contentStream
            .Write(new LineWidthOperator(GraphicsState.LineWidth))
            .Write(new LineCapOperator(GraphicsState.LineCap))
            .Write(new LineJoinOperator(GraphicsState.LineJoin))
            .Write(new MiterLimitOperator(GraphicsState.MiterLimit))
            .Write(new DashOperator(GraphicsState.Dash.Array, GraphicsState.Dash.Phase));
        }