[Solved] ILI9225 thick lines

hello,
Im using TFT_22_ILI9225.h library on a 2" display.
I’d like to draw thick inclinated lines, but this lib draws only 1px width.
It can easily be done with a “for” loop, but I was wondering for a more effective solution.

Any ideas?

Most graphics libraries draw angled lines as 1 pixel thick. If you want thicker lines, draw several 1 pixel lines.

Horizontal or vertical lines are different. You just call them filled rectangles i.e. draw as deep or as wide as you want.

David.

Drawing parallel single pixel lines may leave missing pixels depending on the relative start and end coordinates. The examples in the following link are my favorites for drawing thick lines and there are more complex antialiased algorithms too:

http://members.chello.at/easyfilter/bresenham.html

You can also draw thick lines using two triangles. In this case you have better control of the angle of the line end.

bodmer:
.... in the following link are my favorites for drawing thick lines and there are more complex antialiased algorithms too:

Bresenham

from now on, my favorites too!!

bodmer:
You can also draw thick lines using two triangles. In this case you have better control of the angle of the line end.

I am still bumping my head against the wall. Why didnt think of that???

thank you