Capture API: Screen Capture
The Screen Capture API allows you to capture a screenshot of the current view of the screen and to save it locally as an image file. Parameters of the function let you define the filename used, whether to capture the entire screen or just a portion of it, and to trigger a callback once the capture has been saved successfully.
The screen capture function can be used in combination with an HTML5 canvas in your code to capture visitor signatures and/or drawings as shown in one of our demo samples.
- By Import - recommended, works both online & offline, requires inclusion of kiosk_functions.js prior to any of the following calls.
- By Injection - only works offline, may not be available 'onload'.
This function triggers a screen capture and saves the result in the local Kiosk Pro documents folder.
saveScreenToPng(filename, x-axis, y-axis, width, height, callback);
|Callback return values||success = if defined, the function successfully captured and saved an image to the Kiosk Pro document's folder.|