: i badly need help to implement an anti aliased line function in turbo c++ under the graphics.h library. : : can anyone plz send me the algorithm for drawing anti aliased line in c++. thank you. : i badly need it for in a week's time. plzz help : :
what is an "anti-aliased" line? Anything like an aliesed variable?
: : what is an "anti-aliased" line? Anything like an aliesed variable? :
An anti-aliased line is one with smoothed edges... If I draw a line in MSPaint, from (1, 1) to (100, 2), there'll be a noticable step half way through.
eg: (Hashes represent pixels)
[code] ############ ############ [/code]
Anti-aliasing smoothes out the step by filling in the area around the step in a colour somewhere between the background and the foreground...
[blue]Thanks for the explanation. I don't know how to correct it. Hopefully someone else will. Cheers! [/blue]
: : : : what is an "anti-aliased" line? Anything like an aliesed variable? : : : : An anti-aliased line is one with smoothed edges... If I draw a line in MSPaint, from (1, 1) to (100, 2), there'll be a noticable step half way through. : : eg: (Hashes represent pixels) : : [code] : ############ : ############ : [/code] : : Anti-aliasing smoothes out the step by filling in the area around the step in a colour somewhere between the background and the foreground... : : [code] : ############,,,,,, : ''''''############ : [/code] : : Please forgive the crudity of my diagrams! : Explanation may not be the best either. : : /* : : Those of you who believe in : psychokenesis, raise my hand. : : */ : :
Comments
:
: can anyone plz send me the algorithm for drawing anti aliased line in c++. thank you.
: i badly need it for in a week's time. plzz help
:
:
what is an "anti-aliased" line? Anything like an aliesed variable?
: what is an "anti-aliased" line? Anything like an aliesed variable?
:
An anti-aliased line is one with smoothed edges... If I draw a line in MSPaint, from (1, 1) to (100, 2), there'll be a noticable step half way through.
eg: (Hashes represent pixels)
[code]
############
############
[/code]
Anti-aliasing smoothes out the step by filling in the area around the step in a colour somewhere between the background and the foreground...
[code]
############,,,,,,
''''''############
[/code]
Please forgive the crudity of my diagrams!
Explanation may not be the best either.
/*
Those of you who believe in
psychokenesis, raise my hand.
*/
: :
: : what is an "anti-aliased" line? Anything like an aliesed variable?
: :
:
: An anti-aliased line is one with smoothed edges... If I draw a line in MSPaint, from (1, 1) to (100, 2), there'll be a noticable step half way through.
:
: eg: (Hashes represent pixels)
:
: [code]
: ############
: ############
: [/code]
:
: Anti-aliasing smoothes out the step by filling in the area around the step in a colour somewhere between the background and the foreground...
:
: [code]
: ############,,,,,,
: ''''''############
: [/code]
:
: Please forgive the crudity of my diagrams!
: Explanation may not be the best either.
:
: /*
:
: Those of you who believe in
: psychokenesis, raise my hand.
:
: */
:
: