c# - OutOfMemoryException on drawing bezier curves in WinForms -


while drawing bezier curve following data, shows outofmemoryexception

graphics g = e.graphics; pointf pf0, pf1, pf2, pf3; pen pen = new pen(color.black); pen.width = 2; pf0 = new pointf(153.649292f, 141.85f); pf1 = new pointf(153.650925f, 141.848969f); pf2 = new pointf(153.652557f, 141.848465f); pf3 = new pointf(153.65419f, 141.848465f); g.drawbezier(pen, pf0, pf1, pf2, pf3); 

if pen.width changed 1.5f, curve drawn without showing exception. possible way avoid exception?


Comments

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -