Click or drag to resize
SbColorSetPackedValue Method
Sets value of color vector from an RGBA packed color value.

Namespace: OIV.Inventor
Assembly: OIV.Inventor.SbLinear (in OIV.Inventor.SbLinear.dll) Version: 2024.1.1.Release.7989217834dd2b99155f267b6c8c70f9feacdedd
Syntax
public void SetPackedValue(
	uint orderedRGBA,
	out float transparency
)

Parameters

orderedRGBA
Type: SystemUInt32
RGBA packed color value.
transparency
Type: SystemSingle
Transparency output parameter.
Remarks
The packed color format expressed in hexadecimal is 0xrrggbbaa, where
  • rr is the red value
  • gg is the green value
  • bb is the blue value
  • aa is the alpha value

RGBA component values range from 0 to 0xFF (255). The returned transparency value is a floating point value between 0.0 (opaque) and 1.0 (completely transparent). It is derived from the alpha component of the RGBA color.

See Also