Open topic with navigation
Capture the screen image to a file or texture
|flags = 0|
Capture the screen into an RGBA image instead of RGB.
When capturing the screen to a texture, copy the screen contents directly into the texture object on the GPU, instead of downloading the image to the CPU. This increases screen capture performance for texture objects, however the image data will not be available to the script. When this flag is enabled, the existing texture format determines the capture format, and the viz.CAPTURE_RGBA flag will be ignored.
Note: The image is not generated immediately. Vizard must wait until the next frame is rendered before it can capture the image.