SingleScreenshot

specialized version of the Screenshots extension that takes a single screenshot and exits

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun afterDraw(drawer: Drawer, program: Program)
Link copied to clipboard
open override fun beforeDraw(drawer: Drawer, program: Program)
Link copied to clipboard
open override fun setup(program: Program)
Link copied to clipboard
open fun shutdown(program: Program)
Link copied to clipboard
fun trigger()

Trigger screenshot creation

Properties

Link copied to clipboard

Event that is triggered after contents have been drawn and the screenshot has been committed to file

Link copied to clipboard

should saving be performed asynchronously?

Link copied to clipboard

Event that is triggered just before drawing the contents for the screenshot

Link copied to clipboard

when true, capture every frame. when false, only capture on keypress.

Link copied to clipboard

contentScale can be se to be greater than 1.0 for higher resolution screenshots

Link copied to clipboard

delays the screenshot for a number of frames. useful to let visuals build up in automated screenshots.

Link copied to clipboard
open override var enabled: Boolean
Link copied to clipboard

the folder where the screenshot will be saved to. Default value is "screenshots", saves in current working directory when set to null.

Link copied to clipboard
var key: String

the key that should be pressed to take a screenshot

Link copied to clipboard
Link copied to clipboard

multisample settings

Link copied to clipboard
var name: String?

override automatic naming for screenshot

Link copied to clipboard

filename of the screenshot output

Link copied to clipboard

should the program quit after taking a screenshot?