SbColorSetPackedValue Method |
Sets value of color vector from an RGBA packed color value.
Namespace: OIV.InventorAssembly: OIV.Inventor.SbLinear (in OIV.Inventor.SbLinear.dll) Version: 2024.2.2.Release.778f4cc64de03c89c1282c66aa1f73c0e9a1408b
Syntax public void SetPackedValue(
uint orderedRGBA,
out float transparency
)
Public Sub SetPackedValue (
orderedRGBA As UInteger,
<OutAttribute> ByRef transparency As Single
)
public:
void SetPackedValue(
unsigned int orderedRGBA,
[OutAttribute] float% transparency
)
member SetPackedValue :
orderedRGBA : uint32 *
transparency : float32 byref -> unit
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