internal ShapeContext(ContentStream contentStream, PageResources resources) { _contentStream = contentStream; _contentStream.SaveState(); State = new GraphicsState(resources); }
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)); }