View Single Post
  #2  
Old 05-02-2003, 02:38 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Hi Andy,

There isn't any built in function to change the screen resolution within Vizard. However, if you know a little bit of windows programming, it would be very easy to create a Vizard plugin to accomplish this. Here's some windows code that will change the screen resolution to 800x600:

***************************
DEVMODE dmScreenSettings;
memset(&dmScreenSettings,0,sizeof(dmScreenSettings ));
dmScreenSettings.dmSize=sizeof(dmScreenSettings);
dmScreenSettings.dmPelsWidth = 800;
dmScreenSettings.dmPelsHeight = 600;
dmScreenSettings.dmFields=DM_PELSWIDTH|DM_PELSHEIG HT;
ChangeDisplaySettings(&dmScreenSettings,0);
***************************

The following code will return you back to the original resolution:

***************************
ChangeDisplaySettings(NULL,0);
***************************

Good luck!

-- farshid
Reply With Quote