GDI+绘图

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);
GDI+绘图_第1张图片

你可能感兴趣的:(GDI+绘图)