Gdiplus::Graphics::FillEllipse填充椭圆

 

复制代码
    
    HDC hdc = ::GetDC(m_hWnd);
    Graphics graphics(hdc);
    SolidBrush brush(Color(150,0,0,255));


    graphics.FillEllipse(&brush,10,10,200,100);//填充椭圆
    /*
    格式:
    Status FillEllipse(const Brush* brush, const Rect& rect);
    Status FillEllipse(const Brush* brush, INT x, INT y, INT width, INT height); 
    Status FillEllipse(const Brush* brush, const RectF& rect);
    Status FillEllipse(const Brush* brush, REAL x, REAL y, REAL width, REAL height);
    参数1:画刷指针
    
    */
复制代码

 

 

 

 

 

 

posted @   天子骄龙  阅读(72)  评论(0编辑  收藏  举报
努力加载评论中...
点击右上角即可分享
微信分享提示