Custom video effects

You can add your own video effects using OnVideoFrameBitmap and OnVideoFrameBuffer events.

OnVideoFrameBitmap sample:

private void VideoCapture1_OnVideoFrameBitmap(object sender, VideoFrameBitmapEventArgs e)
{
    Graphics grf = Graphics.FromImage(e.Frame);

    grf.DrawString("Hello!", new Font(FontFamily.GenericSansSerif, 20), new SolidBrush(Color.White), 20, 20);
    grf.Dispose();

    e.UpdateData = true;
}

Using OnVideoFrameBuffer event you must update data in RGB24 image buffer. Fast but not so easy way. You can use Intel IPP or other image processing libraries.

VisioForge © 2006-2019

  • GitHub-Mark-64px
  • Twitter Социальные Иконка
  • VisioForge Facebook page
  • YouTube channel