通过使用:
RenderTargetBitmap bmp = new RenderTargetBitmap((int)this.mediaElement1.ActualWidth,
(int)this.mediaElement1.ActualHeight, 50, 50, PixelFormats.Pbgra32);
直接用image读取bmp,出来的图片是这样的:
但是,通过灰度化后是这样的:
通过改变RenderTargetBitmap((int)this.mediaElement1.ActualWidth, (int)this.mediaElement1.ActualHeight, 50, 50, PixelFormats.Pbgra32);当中50,50的值可以改变黑色区域的位置和大小,不知道这两个参数具体有什么意义,请大神帮忙呀!谢谢。