CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2004
    Location
    Bangalore, INDIA
    Posts
    20

    How to draw Dashed Ellipse in Embedded VC++

    Hi all,

    In my application using eVC++ 4.0, I have to draw ellipses with different line styles such as dashed, dotted,
    dashed-dotted..

    I do it successfully in VC++ 6.0, using Bezier Functions... But some of the functions are not supported in eVC++ 4.0.

    Is there any way to draw these ellipses?

    Please help me...

    Thanks in Advance,

    Arun AC

  2. #2
    Join Date
    Nov 2003
    Location
    Belgium
    Posts
    8,150

    Re: How to draw Dashed Ellipse in Embedded VC++

    Can't you use the Ellipse function instead of using Beziers??
    Marc Gregoire - NuonSoft (http://www.nuonsoft.com)
    My Blog
    Wallpaper Cycler 3.5.0.97

    Author of Professional C++, 4th Edition by Wiley/Wrox (includes C++17 features)
    ISBN: 978-1-119-42130-6
    [ http://www.facebook.com/professionalcpp ]

  3. #3
    Join Date
    Apr 2004
    Location
    Bangalore, INDIA
    Posts
    20

    Re: How to draw Dashed Ellipse in Embedded VC++

    Hi Marc,

    In eVC++ 4.0 , the dashed, dotted, dashed-dotted linestyles
    work only with pen width 1 or less.

    In my appln, i have to draw the ellipses with penwidth more than 1.


    How can it be done ?

    Please help...


    Thanks in advance,

    Arun AC

  4. #4
    Join Date
    Nov 2003
    Location
    Belgium
    Posts
    8,150

    Re: How to draw Dashed Ellipse in Embedded VC++

    Quote Originally Posted by sunkingac
    In eVC++ 4.0 , the dashed, dotted, dashed-dotted linestyles
    work only with pen width 1 or less.
    Unfortunately, that's not only the case for eVC++ 4.0 for for all versions of Windows as can be read in the MSDN:
    Quote Originally Posted by MSDN
    This style is valid only when the pen width is one or less in device units.
    I don't know how to draw tick dotted lines with GDI, but maybe you can use AntiGrain to do it. Check the demo page.
    Marc Gregoire - NuonSoft (http://www.nuonsoft.com)
    My Blog
    Wallpaper Cycler 3.5.0.97

    Author of Professional C++, 4th Edition by Wiley/Wrox (includes C++17 features)
    ISBN: 978-1-119-42130-6
    [ http://www.facebook.com/professionalcpp ]

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