Ejemplo n.º 1
0
 /// <summary>
 /// Draws a rectangle specified by a coordinate pair, a width, and a height.
 /// </summary>
 /// <param name="pen">A Pen that determines the color, width, and style of the rectangle. </param>
 /// <param name="x">The x-coordinate of the upper-left corner of the rectangle to draw. </param>
 /// <param name="y">The y-coordinate of the upper-left corner of the rectangle to draw. </param>
 /// <param name="width">The width of the rectangle to draw. </param>
 /// <param name="height">The height of the rectangle to draw. </param>
 public abstract void DrawRectangle(RPen pen, double x, double y, double width, double height);
Ejemplo n.º 2
0
 /// <summary>
 /// Draws a line connecting the two points specified by the coordinate pairs.
 /// </summary>
 /// <param name="pen">Pen that determines the color, width, and style of the line. </param>
 /// <param name="x1">The x-coordinate of the first point. </param>
 /// <param name="y1">The y-coordinate of the first point. </param>
 /// <param name="x2">The x-coordinate of the second point. </param>
 /// <param name="y2">The y-coordinate of the second point. </param>
 public abstract void DrawLine(RPen pen, double x1, double y1, double x2, double y2);
Ejemplo n.º 3
0
 /// <summary>
 /// Draws a GraphicsPath.
 /// </summary>
 /// <param name="pen">Pen that determines the color, width, and style of the path. </param>
 /// <param name="path">GraphicsPath to draw. </param>
 public abstract void DrawPath(RPen pen, RGraphicsPath path);
Ejemplo n.º 4
0
 /// <summary>
 /// Draws a GraphicsPath.
 /// </summary>
 /// <param name="pen">Pen that determines the color, width, and style of the path. </param>
 /// <param name="path">GraphicsPath to draw. </param>
 public abstract void DrawPath(RPen pen, RGraphicsPath path);
Ejemplo n.º 5
0
 /// <summary>
 /// Draws a rectangle specified by a coordinate pair, a width, and a height.
 /// </summary>
 /// <param name="pen">A Pen that determines the color, width, and style of the rectangle. </param>
 /// <param name="x">The x-coordinate of the upper-left corner of the rectangle to draw. </param>
 /// <param name="y">The y-coordinate of the upper-left corner of the rectangle to draw. </param>
 /// <param name="width">The width of the rectangle to draw. </param>
 /// <param name="height">The height of the rectangle to draw. </param>
 public abstract void DrawRectangle(RPen pen, double x, double y, double width, double height);
Ejemplo n.º 6
0
 /// <summary>
 /// Draws a line connecting the two points specified by the coordinate pairs.
 /// </summary>
 /// <param name="pen">Pen that determines the color, width, and style of the line. </param>
 /// <param name="x1">The x-coordinate of the first point. </param>
 /// <param name="y1">The y-coordinate of the first point. </param>
 /// <param name="x2">The x-coordinate of the second point. </param>
 /// <param name="y2">The y-coordinate of the second point. </param>
 public abstract void DrawLine(RPen pen, double x1, double y1, double x2, double y2);
Ejemplo n.º 7
0
 public override void DrawRectangle(RPen pen, double x, double y, double width, double height)
 {
     ReleaseHdc();
     _g.DrawRectangle(((PenAdapter)pen).Pen, (float)x, (float)y, (float)width, (float)height);
 }
Ejemplo n.º 8
0
 public override void DrawPath(RPen pen, RGraphicsPath path)
 {
     _g.DrawPath(((PenAdapter)pen).Pen, ((GraphicsPathAdapter)path).GraphicsPath);
 }
Ejemplo n.º 9
0
 public override void DrawLine(RPen pen, double x1, double y1, double x2, double y2)
 {
     ReleaseHdc();
     _g.DrawLine(((PenAdapter)pen).Pen, (float)x1, (float)y1, (float)x2, (float)y2);
 }