Пример #1
0
 /// <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);
 }
Пример #2
0
 /// <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;
 }