public void BitmapSource_ToImagePixels() { var pixels = _container.Pixels; _bitmapSource.CopyToImagePixels(ref pixels); }