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: 2024.2.2.Release.778f4cc64de03c89c1282c66aa1f73c0e9a1408b
Syntax public 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