C # How to play an AVI Video and draw some simple lines while playing the video?
If you are familiar with C ++, first refer to the AMCap example in DirectX SDK. We used it for real-time character tracking.
If you are not familiar with C ++, read these two CodeProject articles first. They explain what Filter Graph is and how to use C # To play back videos and capture videos.
DirectShow MediaPlayer in C #
DirectX. Capture Class Library
2. In the form of drawing X-Y coordinates how to achieve? It is mainly the arrow at the front, and the scale and X axis represent the time t (how does this t represent the time next to the X axis )?
Arrow, scale, and X axis indicate the time t... they are all drawn by themselves. There are actually only four types: long line, short line (scale), arrow (two short lines), and t (string ).
In C ++, include. h in and then add lib. Is that true?
Yes
C # how to use it? Struct may be defined in function parameters. Do I need to redefine these structures?
Yes
Do the pointer types in C ++ function parameters need to be replaced with IntPtr?
IntPtr can be generic to all pointers. However, if you have redefined the structure, you can use the C # keyword ref. ref MyStruct can be passed by reference (pointer.
Call the C ++ function module in C # as few as possible. You can use a C ++ dll as an intermediary. C ++ dll can easily communicate with function modules, or even perform some additional processing, and then use the most streamlined method, provide necessary functions to your C # interface.