SbColorGetPackedValue Method (Single) |
Returns an RGBA packed color value, derived from the color vector
and the passed transparency value.
Namespace: OIV.InventorAssembly: OIV.Inventor.SbLinear (in OIV.Inventor.SbLinear.dll) Version: 2025.1.0.Release.bbf67b7ce81225a791aa69eb415ebddead35829d
Syntaxpublic uint GetPackedValue(
float transparency
)
Public Function GetPackedValue (
transparency As Single
) As UInteger
public:
unsigned int GetPackedValue(
float transparency
)
member GetPackedValue :
transparency : float32 -> uint32
Parameters
- transparency
- Type: SystemSingle
Transparency value.
Return Value
Type:
UInt32RGBA packed color value.
Remarks
The alpha component is set to
(1.0f - transparency) * 255
,
resulting in a hex value between 0 and 0xFF.
See Also