public capture(path as Path) as Void throws IOException:
Captures the current window client area into a BMP image.