使用Graphics类有很多方法,包括画点try it

解决方案 »

  1.   

    供参考
    http://www.c-sharpcorner.com/Code/2002/April/DrawBSplines.asp
      

  2.   

    xhan2000(popeye.net) :
        能否给我说一下是哪个函数,我找不到是哪个函数
      

  3.   

    xhan2000(popeye.net) :
        能否给我说一下是哪个函数,我找不到是哪个函数
      

  4.   

    chinchy:
         Graphics.DrawLine 那是画线函数
      

  5.   


    private void Form1_Paint(object sender, System.Windows.Forms.PaintEventArgs e)
    {
    Pen blackPen = new Pen(Color.Red, 1); // Create coordinates of points that define line. float x1 = 100.0F; float y1 = 100.0F; float x2 = 101.0F; float y2 = 101.0F; // Draw line to screen. e.Graphics.DrawLine(blackPen, x1, y1, x2, y2);
    }
    只是这个“点”有点丑。呵呵!你试着改变一下座标吧!好运!
      

  6.   

    snewxf(心疤):
         你的办法还是不能做到我想做的东西。我现在有一位图图像点阵数据,想利用这数据点画一位图。
         有人能够解决吗?
      

  7.   

    .net里是不是没有画点的函数呢?
      

  8.   

    .net Graphics类不提供直接画点的方法,都是用DrawLine(长度为1个点阵的线)和FillRectangle(长宽都为1的矩形)来代替。
    你的问题很简单啊,把bitmap中所有的点按x、y分别循环画一遍不就行了?
    代码还是要自己写的好!
      

  9.   

    bitmap有个方法SetPixel是设置该点的颜色,也就是用指定的颜色画点。