public void RestoreState(int index, PdfContentByte cb) { int pops; if (index < 0) { pops = Math.Min(-index, savedStates.Count); } else { pops = Math.Max(savedStates.Count - index, 0); } if (pops == 0) { return; } MetaState state = null; while (pops-- != 0) { cb.RestoreState(); state = (MetaState)savedStates.Pop(); } metaState = state; }
public void SaveState(PdfContentByte cb) { cb.SaveState(); MetaState state = new MetaState(this); savedStates.Push(state); }
public float GetFontSize(MetaState state) { return Math.Abs(state.TransformY(height) - state.TransformY(0)) * Document.WmfFontCorrection; }
public MetaState(MetaState state) { metaState = state; }
public float GetFontSize(MetaState state) { return(Math.Abs(state.TransformY(height) - state.TransformY(0)) * Document.WmfFontCorrection); }