Example #1
0
 /// <summary>
 /// Updates the clip region of this XGraphics to the intersection of the 
 /// current clip region and the specified rectangle.
 /// </summary>
 public void IntersectClip(XRect rect)
 {
   XGraphicsPath path = new XGraphicsPath();
   path.AddRectangle(rect);
   IntersectClip(path);
 }
Example #2
0
 /// <summary>
 /// Updates the clip region of this XGraphics to the intersection of the 
 /// current clip region and the specified rectangle.
 /// </summary>
 public void IntersectClip(XRect rect)
 {
   XGraphicsPath path = new XGraphicsPath();
   path.AddRectangle(rect);
   SetClip(path, XCombineMode.Intersect);
 }
Example #3
0
 public void SetClip(Rectangle rect)
 {
   XGraphicsPath path = new XGraphicsPath();
   path.AddRectangle(rect);
   SetClip(path, XCombineMode.Replace);
 }
Example #4
0
 /// <summary>
 /// Sets the clipping region to the specified graphical path.
 /// </summary>
 public void SetClip(XRect rect, XCombineMode combineMode)
 {
   XGraphicsPath path = new XGraphicsPath();
   path.AddRectangle(rect);
   SetClip(path, combineMode);
 }