On Thu, 15 May 2008 03:02:10 -0700, Rami <ra**@giron.comwrote:
I came accross a code (some prepared program) that plays a certain video
on
any button click selected window on the PC. When it stops playing the
video,
the original window diplays again its original view.
My mission is to preserve the last farme of the video (or some close
view of
it) and have it as a static diaply instead of the original diaply.
Is that possible and how?
Surely it's possible. But I don't think it would be possible to try to do
this using only .NET/C# functionality. This is doubly true if you are
using some external process to display the video where that external
process doesn't provide an API for you to receive frames from the video
directly.
You're not very specific about any of the problem. However, if you're
dealing with a normal video data file, you can use DirectShow to grab any
specific frame from the video, including the last one (I think it's the
IMediaDet interface that's useful for that, but don't hold me to that :)
). You can use DirectShow from a C# program via interop (p/invoke).
There is even an open source project meant to help with this. Use Google
to search for "directshow .net". It'll be one of the first hits, if not
the very first.
You may in fact find that once you're using DirectShow, it's easier to
just implement whatever video display functionality you want using that,
rather than "some prepared program".
Pete