c 從畫刷建立畫筆

2021-04-23 02:18:39 字數 571 閱讀 9475

using system;

using system.collections.generic;

using system.componentmodel;

using system.data;

using system.drawing;

using system.text;

using system.windows.forms;

using system.drawing.drawing2d;

private

void button1_click(object sender, eventargs e)

;blend.positions = new

float ;

brush.interpolationcolors = blend;

pen pen5 = new pen(brush);

graphics g5 = this.creategraphics();

point p = new point ;

g5.drawellipse(pen5, 0, 0, 100, 100);}}

}

VC 畫刷和畫筆

建立畫筆 cpen pen ps solid,1,rgb 255,0,0 cpen poldpen dc.selectobject pen dc.selectobject poldpen 建立普通畫刷 cclientdc dc this cbrush brush rgb 255,0,0 dc.fil...

c 畫筆Pen畫虛線

using system using system.collections.generic using system.componentmodel using system.data using system.drawing using system.text using system.window...

c 畫筆Pen畫虛線

using system using system.collections.generic using system.componentmodel using system.data using system.drawing using system.text using system.window...