using system;
using system.collections.generic;
using system.componentmodel;
using system.data;
using system.drawing;
using system.drawing.drawing2d;
using system.text;
using system.windows.forms;
private
void form6_load(object sender, eventargs e)
private
void button1_click(object sender, eventargs e)
catch (system.io.filenotfoundexception)}}
}
c 從畫刷建立畫筆
using system using system.collections.generic using system.componentmodel using system.data using system.drawing using system.text using system.window...
建立透明畫刷
1。如果你的dc是hdc logbrush logbr memset logbr 0 sizeof logbrush logbr.lbcolor rgb 255,0,0 這裡改變位圖背景 logbr.lbstyle bs null hbrush hbrush createbrushindirect ...
線性漸變畫刷
第一種 1.首先先繪製乙個矩形 然後在button 裡定義乙個background,再用乙個線性漸變來寫他的樣式 button height 60 width 120 margin 87,200,86.6,10.4 button.background lineargradientbrush star...