Vizard 8 » Command Index » Vizard modules » viz » <viz>.setDisplayMode
8.0

<viz>.setDisplayMode

Change the display mode

<viz>.setDisplayMode(  
width  
height  
color = 0  
frequency = 0 # Herz
)  
width
Change the horizontal resolution of the monitor.
height
Change the vertical resolution of the monitor.
color = 0
Change the color depth. If 0 then color depth will remain unchanged.
frequency = 0
Change the monitor refresh rate. If 0 then refresh rate will remain unchanged.

Remarks

IMPORTANT: This command must be called before viz.go()

When your script is finished executing the screen resolution will return back to normal.

Return Value

None

Example

#Change screen resolution to 800x600
viz.setDisplayMode(800,600)

viz.go()

See also

<viz:window>.setPosition
<viz:window>.setSize
<viz:window>.setFloat