Click or drag to resize
SoOffscreenRendererSetBackgroundColorRGBA Method

Sets the RGBA background color for rendering.

Namespace: OIV.Inventor
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 9.9.36.0 (9.9.36.0)
Syntax
public void SetBackgroundColorRGBA(
	SbColorRGBA c
)

Parameters

c
Type: OIV.InventorSbColorRGBA
Remarks

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.

See Also