Exemplo n.º 1
0
 /// <summary>
 /// Fills the interior of a polygon defined by an array of points specified by Point structures.
 /// </summary>
 /// <param name="brush">Brush that determines the characteristics of the fill. </param>
 /// <param name="points">Array of Point structures that represent the vertices of the polygon to fill. </param>
 public abstract void DrawPolygon(RBrush brush, RPoint[] points);
Exemplo n.º 2
0
 /// <summary>
 /// Fills the interior of a rectangle specified by a pair of coordinates, a width, and a height.
 /// </summary>
 /// <param name="brush">Brush that determines the characteristics of the fill. </param>
 /// <param name="x">The x-coordinate of the upper-left corner of the rectangle to fill. </param>
 /// <param name="y">The y-coordinate of the upper-left corner of the rectangle to fill. </param>
 /// <param name="width">Width of the rectangle to fill. </param>
 /// <param name="height">Height of the rectangle to fill. </param>
 public abstract void DrawRectangle(RBrush brush, double x, double y, double width, double height);
Exemplo n.º 3
0
 /// <summary>
 /// Fills the interior of a GraphicsPath.
 /// </summary>
 /// <param name="brush">Brush that determines the characteristics of the fill. </param>
 /// <param name="path">GraphicsPath that represents the path to fill. </param>
 public abstract void DrawPath(RBrush brush, RGraphicsPath path);
 /// <summary>
 /// Draw simple border.
 /// </summary>
 /// <param name="border">Desired border</param>
 /// <param name="g">the device to draw to</param>
 /// <param name="box">Box which the border corresponds</param>
 /// <param name="brush">the brush to use</param>
 /// <param name="rectangle">the bounding rectangle to draw in</param>
 /// <returns>Beveled border path, null if there is no rounded corners</returns>
 public static void DrawBorder(Border border, RGraphics g, CssBox box, RBrush brush, RRect rectangle)
 {
     SetInOutsetRectanglePoints(border, box, rectangle, true, true);
     g.DrawPolygon(brush, _borderPts);
 }