C#Panel.BackgroundImage +透明控件=闪烁? [英] C# Panel.BackgroundImage + transparent Controls = flickering?

查看:557
本文介绍了C#Panel.BackgroundImage +透明控件=闪烁?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Panel和一个jpg BackgroundImage(带有BackgroundImageLayout = Stretch). 在面板上是Controls,我添加了带有PictureBoxes,该PNG具有透明的边框.显示此内容不会带来任何问题,但是移动PictureBoxes确实可以.(移动框是可拖动的).

I've got a Panel with a jpg BackgroundImage (with BackgroundImageLayout = Stretch). On the panel it's Controls I add some PictureBoxes with a PNG which has transparent borders. Displaying this doesn't give any problems, but moving (the boxes are draggable) the PictureBoxes does.

结果是移动的PictureBox干扰" BackgroundImage并降低了性能.我拖动框的速度越快,对BackgroundImage的干扰就越大,反之亦然.

The result is that the moving PictureBox "disturbs" the BackgroundImage and slows down performance. The faster I drag the box, the more it disturbs the BackgroundImage, and vice versa.

如何解决这个问题?

推荐答案

查看全文

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