Quantcast
Viewing all articles
Browse latest Browse all 12583

Smooth panning of complex graphics

My app displays vector graphics on a System.Windows.Forms.Panel object (panel). To display the graphics I call the following:

redisplayGraphics();  \\ this is the function that draws the graphics

panel.Invalidate();

If I want to implement dynamic panning, I suppose I can track the cursor movements and call these 2 functions repetitively. The trouble I see is that this process would be quite slow, and most likely not slow. Perhaps you can suggest a better approach.

Thaks for your help!


Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>