In my way

On my way

常用链接

统计

最新评论

GDI+绘图

Graphics    graphics(hdc);
    GraphicsPath path;
    
    LinearGradientBrush linGrBrushB(
        Point(
0, 70),
        Point(
140, 70),
        Color(
255, 0, 0, 0),   // opaque red
        Color(255, 255, 0, 255));  // opaque blue

    LinearGradientBrush linGrBrushF(
        Point(
20, 70),
        Point(
120, 70),
        Color(
255, 255, 0, 255),   // opaque red
        Color(255, 0, 0, 0));  // opaque blue
    graphics.FillEllipse(&linGrBrushB, 0, 0, 140, 140);
    graphics.FillEllipse(
&linGrBrushF, 20, 20, 100, 100);
    
//Play
    SolidBrush  brush(Color(255, 0, 0, 255));
   FontFamily  fontFamily(L
"Times New Roman");
   Font        font(
&fontFamily, 24, FontStyleRegular, UnitPixel);
   PointF      pointF(
49.0f, 58.0f);

    graphics.DrawString(L
"Play",-1,&font, pointF, &brush);

posted on 2009-04-10 15:54 谷主 阅读(2218) 评论(1)  编辑 收藏 引用

评论

# re: GDI+绘图 2009-04-10 18:25 瞎说的

反锯齿一把,似乎会更加好看  回复  更多评论