This WPF app shows you how to capture a webcam feed (using AForge.NET) to insert your own frames into it.