什么是DoubleBuffered? [英] what is DoubleBuffered?

查看:411
本文介绍了什么是DoubleBuffered?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,DoubleBuffered是什么?以及我们如何使用它,我们必须在哪里使用它?

谢谢...

解决方案

这是控件的功能(如果你在谈论 System.Windows.Forms ),或者它可能是其他UI库中的一些类似功能。



这是一个非常重要的功能。它有助于有效对抗闪烁



通常,渲染方法会导致闪烁。想象一下,在某些白色物体的背景上有一些蓝色物体。当你想移动蓝色物体时如何重新渲染它?首先,您需要绘制一个白色物体,然后绘制一个蓝色物体,因为它应该在顶部。在你再次获得蓝色之前,它会快速闪现很多白色。你看到了这个问题吗?



现在,双缓冲会改变这个序列。在引擎盖下,图像首先在某个位图上呈现。然后立即在您的控件上呈现整个位图。没有明显的闪烁。



-SA


只需使用谷歌!

不要闪烁! Double Buffer! [ ^ ]

http://msdn.microsoft.com/en -us / library / ms229622.aspx [ ^ ]

DoubleBuffered c# [ ^ ]

Hi everyone what is DoubleBuffered? and how we can use it,where we must use it?
thank you...

解决方案

This is the feature of a control (if you are talking about System.Windows.Forms), or it can be some similar feature in other UI libraries.

This is a very important feature. It helps to effectively fight flicker.

Very often, your rendering method cause flicker. Imagine that you have some blue object on a background of some white object. How you re-render it when you want to move the blue object? First, you need to draw a white object, and then you draw a blue object, because it should be on top. It will quickly flash a lot of white color, before you get your blue again. Do you see the problem?

Now, double buffering changes this sequence. Under the hood, images are first rendered on some bitmap. And then the whole bitmap is rendered on your control at once. No more noticeable flicker.

—SA


just use google!
Don't Flicker! Double Buffer![^]
http://msdn.microsoft.com/en-us/library/ms229622.aspx[^]
DoubleBuffered c#[^]


这篇关于什么是DoubleBuffered?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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