Exemplo n.º 1
0
 /// <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;
 }
Exemplo n.º 2
0
 /// <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));
 }
Exemplo n.º 3
0
 /// <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));
 }
Exemplo n.º 4
0
 /// <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);
 }
Exemplo n.º 5
0
 /// <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);
 }