OnVideoFrameBitmap event usage

Sample code

OnVideoFrameBitmap event sample usage:
Bitmap bmp = new Bitmap(@"c:\vf\pics\1.jpg");

using (Graphics g = Graphics.FromImage(e.Frame))
{
    g.DrawImage(bmp, 0, 0, bmp.Width, bmp.Height);
    e.UpdateData = true;
}

bmp.Dispose();
Use "Graphics" to update the existing Bitmap. "Graphics" object must be disposed. "e.UpdateData" must be set to true.

Required redists

Please contact support to get help with this tutorial. Visit our GitHub page to get more code samples.
abstract 2abstract 1abstract 3
logo
VisioForge © 2006 - 2021