Gdiplus::Graphics::FillPie填充饼图

HDC hdc = ::GetDC(m_hWnd); Graphics graphics(hdc); SolidBrush brush(Color(150, 0, 0, 255)); RectF rect = { 10.0f,10.0f,200.0f,200.0f }; graphics.FillPie(&brush, rect,30.0,90.0); //填充饼图 /* 参数1:Brush *brush 画刷 参数2:RectF rect 矩形 参数3:REAL startAngle 起始角度 x轴和饼图圆弧起点之间的角度(以度为单位,逆时针为正) 参数4:REAL sweepAngle 要画的角度(以度为单位) */


 
                
            
         浙公网安备 33010602011771号
浙公网安备 33010602011771号