klyn.gui.windows.Window.capture
method
public capture(path as Path) as Void throws IOException:
Description

Captures the current window client area into a BMP image.

Parameters
  • path Destination BMP file path.
Throws
  • IOException if the destination path is invalid or cannot be written. ```klyn import klyn.io win.capture(FilePath("preview.bmp")) ```