Is there a way capture a frame from the running flash video? Do you have any sample code?
Thanks,
Ping
Code: Select all
[DllImport("Kernel32.dll", EntryPoint = "RtlMoveMemory")]
private static extern void CopyMemory(IntPtr Destination, IntPtr Source, int Length);
private void flashControl1_OnFlashPaint(object sender, IntPtr pPixelPointer)
{
BitmapData bmd = bitmap1.LockBits(new Rectangle(0, 0, width, height), ImageLockMode.WriteOnly, PixelFormat.Format32bppArgb);
int StrideSize = width * 4;
for (int i = 0; i < height; i++)
{
IntPtr s = new IntPtr(pPixelPointer.ToInt32()+StrideSize * i);
IntPtr d = new IntPtr(bmd.Scan0.ToInt32() + (StrideSize * (575 - i)));
CopyMemory(d, s, StrideSize);
}
bitmap1.UnlockBits(bmd);
}
}
Users browsing this forum: No registered users and 8 guests