许多形状绘制性能 [英] many Shape drawing Performance

查看:85
本文介绍了许多形状绘制性能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

对于在线监视应用程序,我必须在Silverlight页面上绘制大约10000个矩形.

问题是性能,所以请告诉我哪种方法可以绘制这么多形状更好?

目前,我正在使用"for"循环,该循环返回错误的结果(太慢了).
我的英语不好,(对此感到抱歉)
感谢

Hi Guys,

For an online monitoring application ,I have to draw about 10000 rectangles on a silverlight page.

The problem is performance, so please tell me which way is better to draw these many number of shapes?

Currently I am using the "for" Loop which returns a bad result(so slow).
my english is poor,(sorry about that)
Thanks

推荐答案

查看以下链接:

http://msdn.microsoft.com/en-us/magazine/dd483292.aspx [ ^ ]

http://www.netframeworkdev.com/windows-presentation -foundation-wpf/drawingcontext-close--low-performance-29033.shtml [
Check out these links :

http://msdn.microsoft.com/en-us/magazine/dd483292.aspx[^]

http://www.netframeworkdev.com/windows-presentation-foundation-wpf/drawingcontext-close--low-performance-29033.shtml[^]


看看第二个技巧
Have a look at the second tip here[^]. I''m not absolutely sure, but it might help you.


感谢我的朋友们,但是没有示例代码...
亲爱的Tarun.K.S链接不合适.
PLZ HELP
thanx my friends,but there was no Sample Code...
dear Tarun.K.S the link was not appropriate.
PLZ HELP


这篇关于许多形状绘制性能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆