原创 Graphics類

一:Graphics類的方法 1.  繪製方法 繪製橢圓 private void Form1_Paint(object sender,       System.Windows.Forms.PaintEventArgs e)    

原创 使用畫筆和鋼筆

1.       陰影畫筆                      HatchBrush hBrush1 = new HatchBrush                        (HatchStyle.DashedVertica

原创 GDI+學習筆記(待續)

  一:在應用程序中獲取一個Graphics對象 選擇哪一種繪圖表面?    Windows應用程序中,一個窗體就是一個繪圖表面,每個窗體都有一個與之相關聯的Graohics對象。    如何獲得一個與

原创 矩形和區域

1.       使用Rectangle結構體的方法          private void MethodsMenu_Click(object sender,       System.EventArgs e)     {     

原创 顏色、字體和文本

添加命名空間 using System.Drawing.Text;   添加兩個類型分別爲Color和int的私有變量:      private Color textColor;      private int textSize;