Canvas.capture

Function/Meaning

Capture the entire current drawing content in Bitmap / Texture / Offscreen

Type
Canvasclassmethod of
Syntax
capture(dest, front:bool=true)
Arguments
dest

Capture destination Bitmap / Texture / Offscreen

front

Specify whether to capture from the front buffer or from the back buffer. true for front, false for back

Return value
None (void)
Explanation

Bitmap size corrected to screen size
Not changed for Texture / Offscreen