public RenderInfo(String str, GraphicState state, Matrix tm)
 {
     _string          = str;
     _gs              = state;
     _textToUserSpace = tm.Multiply(state.CurrentTransform);
     _fontMatrix      = state.Font.GetFontMatrix();
 }
 public GraphicState(GraphicState state)
 {
     _font             = state._font;
     _fontSize         = state._fontSize;
     _charSpacing      = state._charSpacing;
     _lineWidth        = state._lineWidth;
     _horzScaling      = state._horzScaling;
     _wordSpacing      = state._wordSpacing;
     _currentTransform = state._currentTransform;
 }
示例#3
0
        public void SaveState()
        {
            var newState = new GraphicState(GraphicState);

            _graphicStack.Push(newState);
        }