詳情請入內,呵呵~~!!

方法一:(用圖片填滿圓圈)
      Graphics g = this.CreateGraphics();
      TextureBrush tb = new TextureBrush(new Bitmap(@"Program Files\\drawImage\\point.jpg"));
     
      //20, 20 為座標位置,10, 10 為圓的大小
      g.FillEllipse(tb, 20, 20, 10, 10);

 

方法二:(用筆刷填滿圓圈)
      Graphics g = this.CreateGraphics();
      SolidBrush sb = new SolidBrush(Color.Blue);
      
      //20, 20 為座標位置,10, 10 為圓的大小
      g.FillEllipse(sb, 20, 20, 10, 10);

 

以上若有錯誤,可進行告知與糾正,謝謝~~!

arrow
arrow
    全站熱搜

    dreamtails 發表在 痞客邦 留言(0) 人氣()