jingwood / d2dlib

A .NET library for hardware-accelerated, high performance, immediate mode rendering via Direct2D.
MIT License
234 stars 40 forks source link

Fillpolygon does not work #46

Closed BergChristian closed 3 years ago

BergChristian commented 3 years ago

Hi!

Created an array of D2Dpoints and try to draw it.

drawpolygon works fine But fillpolygon causes that nothing is being rendered at all. Does not get an error message.

Any ideas why it happens?

Best Christian

BergChristian commented 3 years ago

Hi!

Solved. There are two versions. One which accepts a color and the other which takes a brush. The brush ones works great but the color one does not.

Best Christian

jingwood commented 3 years ago

Thanks! I think it is a bug and I will fix it as soon as possible.

jingwood commented 3 years ago

I have fixed this bug. But since the performance reason the FillPolygon has been marked as obsolete, you can use DrawPolygon instead. 3721a875e6a766233c55e8d94f0eca90777a52f6

BergChristian commented 3 years ago

Ok! would it be possible to achieve a filled polygon using draw polygon? In my case it is not that many arrows so it does not affect my performance but good to know 👍 .