CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: GDI Ellipse

  1. #1
    Join Date
    Jul 1999
    Posts
    16

    GDI Ellipse

    Hi, I'm trying to draw an ellipse using GDI so I'm using the ellipse function. The problem with this function is that it is a filled shape. Is there any way I can draw an ellipse that isn't filled or how I can specify a transparent brush for it to fill with?

    Thanks in advance


  2. #2
    Join Date
    Aug 1999
    Posts
    14

    Re: GDI Ellipse

    Select a NULL_BRUSH to your device-context just before you draw the ellipse.


    CBrush pm_OldBrush = (CBrush *) pDC->SelectStockObject (NULL_BRUSH);
    // ... draw your unfilled things here ...
    pDC->SelectObject (pm_OldBrush);




    that will leave the ellipse unfilled.
    cu
    Danny


  3. #3
    Guest

    Re: GDI Ellipse

    how about pDC->ArcTo()?


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured