|
-
Jun 18th, 2001, 11:53 AM
#1
Thread Starter
Junior Member
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
-
Jun 20th, 2001, 06:59 AM
#2
transcendental analytic
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.
-
Jun 20th, 2001, 02:35 PM
#3
Fanatic Member
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.
-
Jun 21st, 2001, 11:00 AM
#4
Frenzied Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|