/// <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); }
/// <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); }
public void SetClip(Rectangle rect) { XGraphicsPath path = new XGraphicsPath(); path.AddRectangle(rect); SetClip(path, XCombineMode.Replace); }
/// <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); }