How can I fill a tilted rectangle?

I have an embedded application. I can draw lines horizontally & vertically. I can draw a pixel. I need to draw thick lines at any angle. This I have done but if the line is at say 45deg the ends stay at 0deg or 90deg. I need some sort of fill algorithm to fill the tilted skinny rectangle which I could draw. Or does anyone have a better idea?

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!