Search code examples
c#drawingmousemove

How to achieve smooth drawing with C# (like Paint .NET)?


How Paint .NET can draw so fast using C#? Sample: The ellipse perimeter is drawn while the mouse is being dragged without any visible delay. At a simple windows form application in C# If you use the MouseMove event of a Picturebox and draw an ellipse based on the mouse position, there will be a lot of delay and flickering! So, how they do it so smoothly?


Solution

  • They probably use WPF. It is much much faster than forms.