I have a WriteableBitmap that displays a video in a window. Currently I need to hide the subtitles below. I want to use the aero effect, but only close the bottom of WriteableBitmap.
This means that this is the original:

And I want to add Grid Control, which has an aero effect, like This:

But I donβt know how, Iβm already thinking about taking a picture from below and using some kind of effect, and then putting it in the first place, but it looks like low performance for writeableBitmap because it means that it needs to be processed 25 around the image every second ...
Update: Here is my code:
<Grid> <Image x:Name="imgFrame"/> </Grid> private WriteableBitmap bitmap; private void OnVideoFrameRunning(FrameArgs e) { if (null == bitmap) { bitmap = new WriteableBitmap(e.Width, e.Height, 72, 72,PixelFormats.Bgr24, null); imgFrame.Source = bitmap; } bitmap.WritePixels(new Int32Rect(0, 0, e.Width, e.Height), e.Buffer, e.Width * 3, 0, 0); }
source share