public virtual void FrameReceived(IFrame frame) { if (snapImage) { snapImage = false; imageSnaped = false; bitmapImage = frame.CreateBitmapCopy(); imageSnaped = true; } }