C#表格 - 旋转平滑度?非常感谢M $! [英] C# Forms - Rotation smoothness? Thank you very much M$!

查看:91
本文介绍了C#表格 - 旋转平滑度?非常感谢M $!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试制作旋转(旋转)标签。我从控制中继承了。代码(在下面给出)有效,动画不流畅。文本在中心周围不稳定,但是摇动。复制代码还有一个间隔10毫秒的计时器),看看我在说什么。

为此归咎于微软还为时过早吗?
如果有人想要我发送给他整个压缩项目,发送电子邮件到dzenanz gmail
代码(优化查看):

I am trying to make a spinning (rotating) label. I have inherited from control. Code (which is given below) works, but animation is not smooth. Text is not stable around the center, but it "shakes". Copy the code there is also a timer with 10ms interval) and see what I''m talking about.
Is it too soon to blame Microsoft for this?
If someone wants me to send him entire zipped project, send e-mail to dzenanz at gmail
Code (optimized for viewing):

展开 | 选择 | Wrap | 行号

推荐答案

有什么想法吗?任何人?谁应该受到责备,我还是微软?
Any ideas? Anyone? Who is to blame, me or Microsoft?


MS很可能会受到责备,但可能会有一个闪烁的四舍五入?


另外,你刷新每个绘图增量的整个控件,而不仅仅是脏的。部分。然而,尽管如此,我从未想过如何获得仅绘制控件的更改部分。也可以正常工作。


我打算尝试一下,但想知道还有什么我需要触发这些事情?
Well MS is possibly to blame, but there could be a flicker do to rounding?

Also, you refresh the entire control on every drawing increment and not just the "dirty" sections. With that being said however, I''ve never figured out how to get the "only draw the changed section of the control" stuff to work correctly either.

I was planning on trying it out, but wonder what else I need to trigger those things to happen?


好吧,在这个文本旋转控件中,总是需要重新绘制整个控件。例如,如果旋转从1°变为2°,则文本已更改,并且控件仅包含文本。
well, in this text rotation control, it is always needed to repaint whole control. For example, if rotation changes from 1° to 2° text has changed, and control only contains text.


这篇关于C#表格 - 旋转平滑度?非常感谢M $!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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