简体   繁体   English

在C#中,什么是显示可缩放,可平移视频的好方法?

[英]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.

相关问题 在C#中编写批处理脚本的好方法是什么? - What's a good way to write batch scripts in C#? 在C#项目中存储不变变量的好方法是什么? - What's a good way to store unchanging variables in a C# project? 在C#中捕获StackOverflow异常的一般方法是什么? - What's a good general way of catching a StackOverflow exception in C#? 什么是C#中的错误操作符? - What's the false operator in C# good for? 来自C背景,在C#中实现const引用数据表/结构的好方法是什么? - Coming from a C background, what's a good way to implement const reference data tables/structures in C#? 使用受保护对象C#编写单元测试的好方法是什么(使用NMock和NUnit框架) - What's a good way to write Unit tests for code with protected objects C# (using NMock, and NUnit framework) 存储大量数字的好方法是什么? (例如572e6561)在C#中 - What's a good way to store extremely large numbers? (Eg. 572e6561) in C# 将XML文件解析为C#IEnumerable的好方法是什么 <dynamic> ? - What's a good way to parse an XML file into a C# IEnumerable<dynamic>? ac #dll将错误返回给调用应用程序的好方法是什么? - What's a good way for a c# dll to return error to the calling application? 在C#中缩放图像的好方法是什么? - What would be a good way to scale images in C#?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM