SoOffscreenRendererSetBackgroundColorRGBA Method |
Sets the RGBA background color for rendering.
Namespace: OIV.Inventor
The default is (0,0,0,1) = opaque black. The default RGB color (but NOT alpha) can be set using the environment variable OIV_BACKGROUND_COLOR. See also setBackgroundColor().
Notes:
To generate an image with a transparent background (alpha = 0), you must call this method and also call setComponents() with RGBA.
Some image file formats, e.g. JPEG, do not support an alpha channel. Use PNG or TIFF to save images with a transparent background.