public void Dispose() { if (context != null) { context.EndPage(); context.Dispose(); context = null; } }
public override void Dispose() { base.Dispose(); Close(); try { _canvas?.Dispose(); _context?.Dispose(); } catch (Exception exc) { Logger.Warn(exc); } }