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!


Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

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?

Sign In or Register to comment.