コード例 #1
0
ファイル: RGraphics.cs プロジェクト: massreuy/3P
 /// <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);
コード例 #2
0
ファイル: RGraphics.cs プロジェクト: massreuy/3P
 /// <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);
コード例 #3
0
ファイル: RGraphics.cs プロジェクト: massreuy/3P
 /// <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);
コード例 #4
0
ファイル: RGraphics.cs プロジェクト: jcaillon/YamuiFramework
 /// <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);
コード例 #5
0
ファイル: RGraphics.cs プロジェクト: jcaillon/YamuiFramework
 /// <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);
コード例 #6
0
ファイル: RGraphics.cs プロジェクト: jcaillon/YamuiFramework
 /// <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);
コード例 #7
0
 public override void DrawRectangle(RBrush brush, double x, double y, double width, double height)
 {
     ReleaseHdc();
     _g.FillRectangle(((BrushAdapter)brush).Brush, (float)x, (float)y, (float)width, (float)height);
 }
コード例 #8
0
 public override void DrawPolygon(RBrush brush, RPoint[] points)
 {
     if (points != null && points.Length > 0)
     {
         ReleaseHdc();
         _g.FillPolygon(((BrushAdapter)brush).Brush, Utils.Convert(points));
     }
 }
コード例 #9
0
 public override void DrawPath(RBrush brush, RGraphicsPath path)
 {
     ReleaseHdc();
     _g.FillPath(((BrushAdapter)brush).Brush, ((GraphicsPathAdapter)path).GraphicsPath);
 }
コード例 #10
0
 /// <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);
 }