OnVideoFrameBitmap event usage

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 existing Bitmap. Graphics object must be disposed. e.UpdateData must be set to true.
Please contact support to get help with this tutorial. Visit our GitHub page to get more code samples.
VisioForge © 2006 - 2021