saveContext method

void saveContext()

Save the graphic context

Implementation

void saveContext() {
  assert(() {
    if (_page.pdfDocument.settings.verbose) {
      _buf.putString(' ' * (_indent));
    }
    return true;
  }());
  _buf.putString('q ');
  _contextQueue.addLast(_context.copy());
  assert(() {
    if (_page.pdfDocument.settings.verbose) {
      _buf.putString(' ' * (_commentIndent - 2 - _indent));
      _buf.putComment('saveContext()');
    }
    _indent += _indentAmount;
    return true;
  }());
}