Catches GDI+ exceptions thrown while drawing dashed lines with anti-aliasing.
Namespace: MindFusion.Diagramming.WinForms
Assembly: MindFusion.Diagramming.WinForms
C# Copy Code |
---|
public bool CatchGdiPlusExceptions { get; set; } |
Visual Basic Copy Code |
---|
Public Property CatchGdiPlusExceptions As Boolean |
true to catch GDI+ OutOfMemoryException, otherwise false. The default value is true.
GDI+ throws occasional OutOfMemoryException exceptions when drawing curved lines with dashed pens and anti-aliasing is enabled. We haven't observed actual memory spikes and our believe is that the .NET wrapper Graphics class interprets incorrectly an error code returned by the native GDI+ libraries. When this property is enabled, the component catches and ignores the exceptions.
MindFusion.Diagramming Developer's Guide | © 2024 MindFusion |