/// <summary> /// Create a bmp screenshot of the given element. /// </summary> private Bitmap CreateBitmap(UIElement element) { return(ImageUtility.CaptureElement(element)); }