public static saveImagePNG(destination as Path) as Void
Description
Exports an image to a new PNG file, never replacing an existing file.
Parameters
Parameter
Description
destination
New file in an existing directory.
Throws
IOException when no image/backend is available or after 5 seconds. Failed exports are removed. No clipboard text is evaluated as commands. Example: Clipboard.saveImagePNG(Path.tempDir.resolve("capture.png")).