Skip to main content

OnVideoFrameBitmap event usage

Products: Video Capture SDK .Net, Video Edit SDK .Net, Media Player SDK .Net

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;


Use "Graphics" to update the existing Bitmap. "Graphics" object must be disposed. "e.UpdateData" must be set to true.

Required redists

  • SDK redist

Visit our GitHub page to get more code samples.