GDI + DashStyle throws an OutOfMemoryException in .NET.

I use DashStyle.Dashwhen rendering my object hierarchy. It is widely used in my application Graphics.Transform, and I found that at some scale values ​​(including a 100% scale) and at some rotation angles it Graphics.DrawLinethrows OutOfMemoryExceptionwhen using the pen with DashStyle.Dash. Using Google, I found this to be a known issue. Microsoft tells us that this is not an issue lock . So far I have not found a workaround for this problem.

What are my options?

+1
source share
1 answer

. .

  • , . +/- 1 .
  • LineCapRound DashCapRound, LineCapSquare DashCapFlat
  • (, )
  • .

!

+1

Source: https://habr.com/ru/post/1718789/


All Articles