예제 #1
0
 void RewindTransform()
 {
     if (transforms != null)
     {
         transforms.PopAll();
     }
 }
예제 #2
0
 public void SetClip(RectangleF rectangle)
 {
     TransformStack.PopAll();
     ResetClip();
     clipBounds = rectangle;
     clipPath   = null;
     ApplyClip();
     TransformStack.PushAll();
 }
예제 #3
0
 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();
 }
예제 #4
0
 void CloseGroup()
 {
     if (group != null && baseContext != null)
     {
         TransformStack.PopAll();
         ResetClip();
         Control.Close();
         baseContext.DrawDrawing(group);
         Control = baseContext;
         group   = null;
         ApplyClip();
         TransformStack.PushAll();
     }
 }