public void ProcessPaint(Graphics gra, Point old, Point cur) { if (!pickerActive) { GraphicsPath gPath = new GraphicsPath(); if (points != null) { switch (selBrush.getBrush()) { case 0: //marker marker.Paint(gra, cur, gPath, points); break; case 1: //eraser gra.CompositingMode = CompositingMode.SourceCopy; eraser.Paint(gra, cur, gPath, points); break; case 3: pencil.Paint(gra, cur, gPath, points); break; case 5: calligraphy.Paint(gra, cur, gPath, _pts); break; default: break; } } } }