Skip to main content

Module screenshot

Module screenshot 

Source
Expand description

A picture of the popup, taken by the popup itself: Ctrl+Shift+S.

The popup closes when anything else is clicked, so a screenshot tool that is clicked on has nothing left to take. This asks the renderer for what it last drew of the popup and writes that as a PNG to the user’s pictures folder, as avestruz-<date>_<time>.png. The popup’s rounded corners are transparent in it, as they were drawn.

The picture is of whatever shows: other people’s notes, and anything being written. It goes to a file and nowhere else, and where it went is said in the journal.

Enums§

ScreenshotError
Why a picture of the popup was not written.

Functions§

file_name 🔒
What a picture taken at at is called.
pictures_folder 🔒
Where pictures go: the user’s pictures folder, or Pictures at home where the desktop names none.
save_png 🔒
Write taken as a PNG called name in folder, which is made if it is not there, and say where it is. The pixels are written as they came, transparency included.