1
Vote

Elbo paint method is both inefficient and completely wrong

description

The OnPaint method of the Elbo component paints the shape by repeatingly overwriting parts with different colors. This has the following disadvantages:
1) It is very inefficient
2) It breaks when the size of the Elbo is unusual (try colheight = rowheight = 10, arcinternal = 130, arcexternal=150)
3) It does not work well with anti aliasing
4) It does not work with transparent colors
 
The Elbo shoud be drawn by creating a path, then filling it.

comments