[英]In C#, what's a good way for displaying zoomable, pannable video?
I've been sorting through DirectX, DirectShow, etc. and can't figure out which .NET C# library would be the best. 我一直在通过DirectX,DirectShow等进行排序,但无法弄清楚哪个.NET C#库是最好的。
I'm making an art installation that will feature full screen video. 我正在制作将以全屏视频为特色的艺术品装置。 I'd like the user to be able to pan and zoom in and out on the video as it's playing, ideally with no skipping or hiccups.
我希望用户能够在播放视频时进行平移和缩放,理想情况下不会跳过或打h。 Is there a Microsoft technology that stands out as an obvious choice for this?
是否有Microsoft技术可以明显地为此脱颖而出?
Don't forget to consider WPF.. It is a lot faster to get started with than Direct3D... It also has an infrastructure designed for glitch free animations, independent from delays from garbage collection and ui thread activity. 不要忘了考虑WPF。它比Direct3D入门要快得多...它也具有专为无故障动画设计的基础结构,而不受垃圾回收和ui线程活动的延迟的影响。
In very complex GUI's, WPF can come with some hidden cost, which annoys people, claiming WPF is slow. 在非常复杂的GUI中,WPF可能会带来一些隐性成本,使人们感到烦恼,声称WPF速度很慢。 But I am confident it will work fine in the scenario you describe.
但是我相信,在您描述的情况下它会很好地工作。
IMHO Use XNA. 恕我直言,使用XNA。 It has much deeper support than the old managed directX.
与旧的托管DirectX相比,它具有更深的支持。 This guy answered your question for you: http://www.david-amador.com/2009/10/xna-camera-2d-with-zoom-and-rotation/
这个人为您解答了您的问题: http : //www.david-amador.com/2009/10/xna-camera-2d-with-zoom-and-rotation/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.