next up previous contents
Next: Screen capture Up: Tutorials Previous: Creating multiple forms   Contents

Changing screen resolutions

The DirectX object can change the screen resolution without restarting the computer. When you play a movie in full screen mode, changing the screen resolution to a lower one will improve the performance.
// List all available screen resolutions in system
var ds = SysInfo.getDisplaySettings();
var i;
for (i = 0; i < ds.length; i++)
{
    _root.strace(ds[i].pelsWidth);
    _root.strace(ds[i].pelsHeight);
    _root.strace(ds[i].bitsPerPel);
    _root.strace(ds[i].displayFrequency);
}

// Change the screen resolution
DirectX.setDisplayMode(800, 600, 32);



Copyright ©2000-2010 Shanghai TopCMM Software Technologies. All Rights Reserved.