コード例 #1
0
        public void AddLine(float x1, float y1, float x2, float y2)
        {
            Line2D l = new Line2D.Float(x1, y1, x2, y2);

            NativeObject.append(l);
        }
コード例 #2
0
ファイル: PPGraphics2D.cs プロジェクト: 89sos98/npoi
 /**
  * Draws a line, using the current color, between the points
  * <code>(x1,&nbsp;y1)</code> and <code>(x2,&nbsp;y2)</code>
  * in this graphics context's coordinate system.
  * @param   x1  the first point's <i>x</i> coordinate.
  * @param   y1  the first point's <i>y</i> coordinate.
  * @param   x2  the second point's <i>x</i> coordinate.
  * @param   y2  the second point's <i>y</i> coordinate.
  */
 public void DrawLine(int x1, int y1, int x2, int y2){
     Line2D line = new Line2D.Float(x1, y1, x2, y2);
     Draw(line);
 }
コード例 #3
0
ファイル: GraphicsPath.jvm.cs プロジェクト: GirlD/mono
		public void AddLine (float x1, float y1, float x2, float y2)
		{
			Line2D l = new Line2D.Float(x1,y1,x2,y2);
			NativeObject.append(l);
		}