BitmapSource GetBitmap()
{
int width = (int)recordingCanvas.ActualWidth;
int height = (int)recordingCanvas.ActualHeight;
RenderTargetBitmap renderBitmap = new RenderTargetBitmap(width > 0 ? width : 680, height > 0 ? height : 480, 96d, 96d, PixelFormats.Pbgra32);
renderBitmap.Render(recordingColorViewer);
return renderBitmap;
}