Tutorial: window.getSnapshot

window.getSnapshot

Gets a base64 encoded PNG snapshot of the window or just a part of it.

Example

const wnd = fin.desktop.Window.getCurrent();

// Snapshot of a full visible window
wnd.getSnapshot(console.log, console.error);

// Snapshot of a defined visible area of the window
const area = {
    height: 100,
    width: 100,
    x: 10,
    y: 10,
};
wnd.getSnapshot(area, console.log, console.error);