Hi,
I see you are familiar with computer graphics and I need a little help with drawing of anti-aliased curves on TCanvas. I just have procedure to draw anti-aliased straight lines (however it needs tweak, it 90% works). Now I need also curves, like sinus etc. My idea is to make procedure for anti-aliased pen and repeat it point-to-point until curve is not finished.
Definition of my pen is like this:
cAAPenW5 : array[-2..2,-2..2] of Single = ((0.14,0.77,0.97,0.77,0.14),(0.77,1,1,1,0.77),(0.97,1,1,1,0.97),(0.77,1,1,1,0.77),(0.14,0.77,0.97,0.77,0.14));
For example this array defines shape of pen, as you see it's circle shape with diameter 5, numbers mean intensity, 1=full replace background with my color, 0=full transparency.
My idea is: clear TCanvas, then draw x and y axes normally via Canvas.Line procedures, and finally draw curves point-ti-point.
I really need no code, I can write it myself :-), only help if I'm on the right way.
Thanks.