void RewindTransform() { if (transforms != null) { transforms.PopAll(); } }
public void SetClip(RectangleF rectangle) { TransformStack.PopAll(); ResetClip(); clipBounds = rectangle; clipPath = null; ApplyClip(); TransformStack.PushAll(); }
public void SetClip(IGraphicsPath path) { TransformStack.PopAll(); ResetClip(); clipPath = path.Clone().ToWpf(); // require a clone so changes to path don't affect current clip clipBounds = clipPath.Bounds.ToEtoF(); ApplyClip(); TransformStack.PushAll(); }
void CloseGroup() { if (group != null && baseContext != null) { TransformStack.PopAll(); ResetClip(); Control.Close(); baseContext.DrawDrawing(group); Control = baseContext; group = null; ApplyClip(); TransformStack.PushAll(); } }