Click here to Skip to main content
15,880,405 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
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?

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

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

I can't comment, why?

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

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.
Posted
Updated 10-Jan-15 6:24am
v5

1 solution

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 wrote:
I can't comment, why?

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

Ziya1995 wrote:
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.


Aside from P/Invoke, there are no other built-in classes in the .NET Framework for creating videos. If you really don't want to use P/Invoke, you'll have to learn about the AVI format (or another format) and implement it:
http://www.alexander-noe.com/video/documentation/avi.pdf[^]
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900