/// <summary> /// Sets the clipping rectangle. /// </summary> /// <param name="clippingRect">The clipping rectangle.</param> /// <returns>True if the clipping rectangle was set.</returns> public bool SetClip(OxyRect clippingRect) { this.clipRect = clippingRect.ToRectangleF(); return true; }
/// <summary> /// Draws the rectangle. /// </summary> /// <param name="rect">The rectangle.</param> /// <param name="fill">The fill color.</param> /// <param name="stroke">The stroke color.</param> /// <param name="thickness">The stroke thickness.</param> public void DrawRectangle(OxyRect rect, OxyColor fill, OxyColor stroke, double thickness) { this.renderUnits.Add(new RectangleRenderUnit(rect.ToRectangleF(), this.GetBrush(stroke), this.GetBrush(fill), (float)thickness)); }
/// <summary> /// Sets the clipping rectangle. /// </summary> /// <param name="clippingRect">The clipping rectangle.</param> /// <returns>True if the clipping rectangle was set.</returns> public bool SetClip(OxyRect clippingRect) { this.clipRect = clippingRect.ToRectangleF(); return(true); }
/// <summary> /// Sets the clipping rectangle. /// </summary> /// <param name="clippingRect">The clipping rectangle.</param> /// <returns>True if the clipping rectangle was set.</returns> public bool SetClip(OxyRect clippingRect) { this.clipRect = clippingRect.ToRectangleF(); renderUnits.Add(new ClipRectRenderUnit(clipRect)); return(true); }