Capture the screen image to a file or texture
<viz:window>.screenCapture( | |
filename | |
flags = 0 | |
) |
Flag | Description |
viz.CAPTURE_RGBA | Capture the screen into an RGBA image instead of RGB. |
viz.CAPTURE_COPY_TEXTURE | 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.