问题描述
你好-
我有一个程序可以在全屏双缓冲图片框上绘制多个缩略图.它在pb上使用drawimage.然后,当用户单击其中一张图像(碰撞检测)时,该图像将以全尺寸动画显示.我也在移动一些文本,并绘制其他图像,等等...嗯,它结结巴巴.我正在使用计时器更改图像和文本的高度,宽度和位置.
基本上,我知道gdi + DrawImage()太慢了,无法绘制,调整大小并再次绘制(以20fps +的速度).那么,我该如何解决呢?
DirectX-非常复杂
OpenGl-可能吗?
还是直接比特币化?在VB.net上找不到很多.有人有任何例子或领域需要关注吗?我正在使用vb.net2008.
意见?请为上帝的爱帮助! :)我到处都在寻找这种解决方案.
谢谢,
Josh
Hello-
I have a program that draws a dozen thumbnail images on a full screen double buffered picturebox. It uses drawimage on the pb. Then, when the user clicks on one of the images (collision detection), that image will animate to full size. I am also moving some text, and drawing another image, etc. etc... Well, it stutters horribly. I am using a timer to change the heights, widths and locations of the images and the text.
Basically, I understand that gdi+ DrawImage() is just too slow to draw that, resize it, and draw it again (at 20fps+.) So, how do I fix it?
DirectX - REALLY complicated
OpenGl - Possibly?
Or direct bitblt''ing? Can''t find much on this with VB.net. Anyone have any examples or areas to look at? I am using vb.net 2008.
Opinions? Please for the love of god help! :) I have looked everywhere for this solution.
Thanks,
Josh
推荐答案
这篇关于Vb.net中的平滑图像动画-Bitblt? DirectX,OpenGl?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!