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

Parameter | Description
--- | ---
`path` | Destination BMP file path.

Throws

- IOException if the destination path is invalid or cannot be written.

Example

    import klyn.io

    win.capture(FilePath("preview.bmp"))