|
||||||
|
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.
| |||||