/// <summary> /// Sets the clip rectangle. /// </summary> /// <param name="rect">The clip rectangle.</param> /// <returns>True if the clip rectangle was set.</returns> public override bool SetClip(OxyRect rect) { this.g.Save(); this.g.IntersectClip(rect.ToXRect()); return(true); }
/// <summary> /// Sets the clip rectangle. /// </summary> /// <param name="rect">The clip rectangle.</param> /// <returns>True if the clip rectangle was set.</returns> public override bool SetClip(OxyRect rect) { this.g.Save(); this.g.IntersectClip(rect.ToXRect()); return true; }