Results 1 to 4 of 4

Thread: Letting users draw an ANTIALIASED line

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jul 2000
    Location
    Israel
    Posts
    23

    Question Letting users draw an ANTIALIASED line

    I am making a comic-book annotation program. The user needs to be able to draw arrows on top of a jpeg. Using the line command is useless, since it makes ugly jagged lines. I need a good antialiased line like the one that is drawn in Photoshop.

    something like aa_line(20,100,50,150)
    should draw aline from x20y100 to x50y150

  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    there's no aa_line functions around, but you can still do it.
    Antialias means also the line is blended to it's background, the distance to the line measuring the alpha level for alphablendending.
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  3. #3
    Fanatic Member Mad Compie's Avatar
    Join Date
    Aug 2000
    Location
    Kuurne (Belgium)
    Posts
    553
    I also posted this question some time ago.

    Please take a look at http://161.58.186.97/showthread.php?...highlight=line

    Another link to "Wu-lines" is http://freespace.virgin.net/hugo.eli...s/x_wuline.htm

    Unfortunately I did not have the time yet to figure out the algorithm.

  4. #4
    Frenzied Member Jotaf98's Avatar
    Join Date
    Jun 2000
    Location
    I'm not gonna give you my IP address! Ok... Portugal, South-Western Europe, 3rd rock from the sun (our star is easy to find, a 47 Ursae Majoris in the Milky Way :p )
    Posts
    1,457
    Yeah I tried that a while ago... d*mn, I haven't been able to convert a single sample program from pascal or c or c++ that worked

    So I don't have access to most good techniques because most of them are written in those languages
    I just have to wait until someone else finds them and converts them to VB
    Last edited by Jotaf98; Jun 21st, 2001 at 11:15 AM.
    Code:
    Temp = Me.GetIQ()
    'Error 9: Overflow
    'DON'T PANIC! :eek:

    To learn how to use realistic effects in your games like fire, rain, snow and magic effects, read my article on particles systems here.


    Jotaf's Theories!
    "Cats land on their feet. Toast lands peanut butter side down. A cat with toast strapped to its back will hover above the ground in a state of quantum indecision."

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