public void SetClip(IGraphicsPath path) { ResetClip(); clipPath = path.Clone(); // require a clone so changes to path don't affect current clip clipBounds = clipPath.ToWpf().Bounds.ToEtoF(); ApplyClip(); }
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(); }
public void SetClip(IGraphicsPath path) { RewindTransform(); RewindClip(); clipBounds = null; clipPath = path.Clone(); clipPath.Transform(currentTransform.ToEto()); ApplyClip(); ApplyTransform(); }
public void SetClip(IGraphicsPath path) { ReverseTransform(); ResetClip(); path = path.Clone(); path.Transform(currentTransform.ToEto()); clipPath = path; clipBounds = path.Bounds; ApplyClip(); ApplyTransform(); }
public void SetClip(IGraphicsPath path) { RewindTransform(); RewindClip(); path = path.Clone(); if (transforms != null && transforms.Current != null) { path.Transform(transforms.Current); } clipPath = path.ToWpf(); // require a clone so changes to path don't affect current clip clipBounds = clipPath.Bounds.ToEtoF(); ApplyClip(); ApplyTransform(); }
public void SetClip(IGraphicsPath path) { ResetClip(); clipPath = path.Clone(); ReplayClip(); }