By looking at the link you posted, obviously, you can select the displayed target coordinates here.
RenderTargetBitmap rtb = new RenderTargetBitmap((int)rect.Right, (int)rect.Bottom, 96d, 96d, System.Windows.Media.PixelFormats.Default);
Tomislav markovski
source share