<viz:window>.screenCapture

Capture the screen image to a file or texture

 

<viz:window>.screenCapture(
    filename    

)

 

filename

Specifies the file name or texture object to save the current screen to.


Remarks

Use this command to save a copy of the current graphic screen to a file. This can be used to automate the creation of a sequence of images that are later compiled into a movie.

NOTE: The image is not generated immediately. Vizard must wait until the next frame is rendered before it can capture the image.

Return Value

None

Example

Capturing to image file:

# Capture screen to BMP file
viz.window.screenCapture('theScreen.bmp')



Capturing to texture:

# Create blank texture
capture_tex = viz.addBlankTexture([1,1])
.
.
.
# Capture screen to texture
viz.window.screenCapture(capture_tex)