
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
The dots are drawn without antialiasing. I specifically chose thePixelSetAA method - drawing dots with anti-aliasing.
Try drawing a line usingPixelSetAA.
The PolylineAA method uses the LineAA method. The LineAA method uses the PixelSetAA method. By drawing a single point, you will not see the effect of antialiasing.
Try drawing a line usingPixelSetAA.
Nope. No effect. No near points of smoothing. Sharp corners are like bricks:
Nope. No effect. No near points of smoothing. Sharp corners are like bricks:
I have supplemented the previous message. Note how the above methods are implemented and use them if you need smoothing.
Since this method draws a point with anti-aliasing, I should get an image like this if I draw several points in a row:
But I don't get smooth points.
I'm not touching the method of drawing a line with smoothing -PolylineAA for now. I want to understand what is stated in help aboutPixelSetAA:
Since this method draws a point with anti-aliasing, I should get an image like this if I draw several points in a row:
But I don't get smooth points.
That is why I suggest that you compare the code of methods with and without antialiasing. The code is open for study.
To understand it you need to thoroughly study the algorithms used in these methods.
You could even write an article on this topic. I would be glad to read it myself. )
A dot can't be smoothed, it's an "elementary particle" in a sense )
So that's the question: there are two methods(PixelSet andPixelSetAA). Very interested inPixelSetAA- maybe I don't understand how dot smoothing works?
If all else fails, read the help ;)
PixelSet simply sets the colour of the point.
We read the help. And so the question is," ShouldPixelSetAA draw even a single point using anti-aliasing?". I want to hear an opinion.
The answer is: thePixelSetAA methodshould draw even a single point using antialiasing, and it does draw that single point using antialiasing. To do this, I had to look into the code of the CCanvas:
class and realized that smoothing appears only if you pass a number of type double as coordinates, and not a rounded value, but with a "tail". Something like 200.4; 125.6; 200.7.
Here's a parabola drawn with points using thePixelSetAA method and it does start drawing with antialiasing: