Go to AVS Home Page
 Recent Releases
AVS/Express 7.3 Released
OpenViz 2.9 Released
Toolmaster 7.5.3 Released
AVS 5.7 Released
 Contact Support
 Licensing
Information on licensing AVS 
products
 
Interact with the AVS Developer 
community. Takes you out of 
the support web site

 


How do you set the Visual Type from within AVS?

Q: There are some public domain modules from the International AVS Centre. One makes use of the following statement:

 LUI_Initialize("AVS display window", NULL);

I notice that this leads to a subsequent call:

 window = LUI_CreateWindowAt(LUI_RootWindow, x, y ,width, height);

which generates an 8-bit pseudocolor window.

This is because the default visual on OpenWindows 3.0 is an 8-bit PseudoColor, even through TrueColor and DirectColor visuals are available.

Q: Would it be possible for a hint on how to generate a TrueColor window with the above calls, so that my images are not always dithered ?

A: This is a LUI function to call BEFORE calling LUI_Initialize

LUI_SetDefaultVisualType(char *visualtype);

where visualtype is "PseudoColor", "DirectColor", "TrueColor", or "VisualID"-something

This corresponds to the .avsrc option VisualType. See the .avsrc options for more information. Please note that LUI is unsupported.