如何用C#.Net Framework中的图像制作视频? [英] How to make a video out of images in C# .Net Framework?

查看:100
本文介绍了如何用C#.Net Framework中的图像制作视频?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用了 Windows窗体技术并通过以字节存储颜色制作了视频动画。

现在我可以使用 Bitmap.LockBits方法将动画用作视频

但是 Bitmap.LockBits方法很慢。



什么是最好的方法在不使用3d派对库的情况下从头开始.Net Framework 吗?



I used Windows Forms technology and made a video animation by storing colors in bytes.
Now i can use the animation as video using Bitmap.LockBits Method.
But Bitmap.LockBits Method is slow.

What is the best way to do it on .Net Framework from scratch without using 3d party libraries?

引用:

看看这里:

AviFile库的简单C#包装器[^]

Have a look here:
A Simple C# Wrapper for the AviFile Library[^]



我从头开始说纯.Net框架,我查看了谷歌的所有链接。



我无法发表评论,为什么?




I said from scratch on pure .Net Framework, i looked at all of those links from google.

I can't comment, why?

Quote:

它只使用P / Invoke,它不是第三方。

it only uses P/Invoke, which is not third-party.



我再次重复一遍纯粹的.Net Framework。

我知道什么是平台调用以及如何使用它。

我在.Net Framework上说过,没有使用其他.dll文件。

当然我可以使用任何.dll文件,但为什么.Net Framework呢?

我希望现在我的问题很简单。



我只是尽可能简短地写我的问题,以便于理解。


I repeat again, on pure .Net Framework.
I know what is Platform Invoke and how to use it.
I said on .Net Framework, not using other .dll files.
Of course i can use any .dll file, but why is .Net Framework made then?
I hope now my question is plain.

I just write my question as short as possible to make it easy to understand.

推荐答案

看看这里:

AviFile库的简单C#包装器 [ ^ ]

文章解释了如何创建一个没有任何第三方库的文件,它只使用P / Invoke,它不是第三方。



Have a look here:
A Simple C# Wrapper for the AviFile Library[^]
The article explains how to create one without any third-party libraries, it only uses P/Invoke, which is not third-party.

Ziya1995写道:
Ziya1995 wrote:

我无法评论,为什么?



这是一个错误: http://www.codeproject.com/Messages/4977029/Wh ere-is-the-comment-box-for-Questions.aspx [ ^ ]




It's a bug: http://www.codeproject.com/Messages/4977029/Where-is-the-comment-box-for-Questions.aspx[^]

Ziya1995写道:
Ziya1995 wrote:

我再次重复,在纯.Net Framework上。


我知道什么是平台调用以及如何使用它。


我在.Net Framework上说过,而不是使用其他.dll文件。

I repeat again, on pure .Net Framework.

I know what is Platform Invoke and how to use it.

I said on .Net Framework, not using other .dll files.



除了P / Invoke,没有其他内置的在.NET Framework中用于创建视频的类。如果你真的不想使用P / Invoke,你必须学习AVI格式(或其他格式)并实现它:

http://www.alexander-noe.com/video/documentation/avi.pdf [ ^ ]


这篇关于如何用C#.Net Framework中的图像制作视频?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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