Пример #1
0
        private void RenderImageThatMasksText(VideoInterpreter.VideoCapture frame, IBoundingBox invalidatedRegion)
        {
            frame.CopyToWriteableBitmap(BackgroundOverlayImage, invalidatedRegion);
            BackgroundOverlay.Width  = frame.Width;
            BackgroundOverlay.Height = frame.Height;

            foreach (var textLoc in TextLocations)
            {
                CopyBitmapToWriteableBitmap(_backgroundBitmap, BackgroundOverlayImage, textLoc.TreeNode);
            }
        }