Results 1 to 3 of 3
  1. #1
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Cornwall, England
    Posts
    393
    Thanks
    0
    Thanked 0 Times in 0 Posts

    smooth line drawing

    Is there any way to draw a line in VB without having it 'step' when it is between vertical and horizontal?
    I believe this is known as anti aliasing in graphics circles?

  2. #2
    Gold Lounger
    Join Date
    Dec 2000
    Location
    Hollywood (sorta), California, USA
    Posts
    2,759
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: smooth line drawing

    Sure! Just draw only vertical or horizontal lines <img src=/S/laugh.gif border=0 width=15 height=15>

    Seriously, you can create your lines in a decent graphics program (that supports anti-alias text and graphics -- PhotoDraw, for example) and insert them as graphics onto VB forms. Since Windows supports anti-aliasing, your "lines" will look good, but you them smack up against the limits of graphics objects in VB/VBA... Oh well...
    Kevin <IMG SRC=http://www.wopr.com/w3tuserpics/Kevin_sig.gif alt="Keep the change, ya filthy animal...">
    <img src=/w3timages/blackline.gif width=33% height=2><img src=/w3timages/redline.gif width=33% height=2><img src=/w3timages/blackline.gif width=33% height=2>

  3. #3
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Cornwall, England
    Posts
    393
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: smooth line drawing

    i was hoping to avoid this as I only need two lines on screen but where the tops of these lines are static, the bottoms have to move between 11 (yes eleven) places on the screen. This would mean that i would have to create 22 seperate 'graphics lines' and hide/show them as appropriate.
    This is , to me anyway, rather a lot of work if there is a better way ?

Posting Permissions

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