How can I fill a tilted rectangle? - Programmers Heaven

Howdy, Stranger!

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

Categories

How can I fill a tilted rectangle?

macphersonmacpherson Posts: 302Member
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?
Thanks.

Sign In or Register to comment.