Window.Screenshot (gb.sdl2)
Function Screenshot ( [ X As Integer, Y As Integer, Width As Integer, Height As Integer ] ) As Image
Take a screenshot of the window.
-
X : the left position of the screenshot inside the window.
-
Y : the top position of the screenshot inside the window.
-
Width : the screenshot width.
-
Height : the screenshot height.
If the screenshot dimensions are not specified, then the entire window contents is returned.