Quantcast
Viewing latest article 4
Browse Latest Browse All 6

WPF - 3000 rectangles - render speed

yes I do use such a code
Canvas.SetLeft(_rect, rc.Left); 
Canvas.SetTop(_rect, rc.Top); 
_rect.Width = rc.Width; 
_rect.Height = rc.Height; 


how would I use TranslateTranform? I guess first time I need to position them as I do above, then at the second and next calls calculate the difference in positions and call TranslateTranforms with that difference?
Am I right?

Does the same idea apply for Line object?

Thx

Viewing latest article 4
Browse Latest Browse All 6

Trending Articles



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