OpenMetaverse Protocol Library Developers API Documentation
FromBytes Method (byteArray, pos, inverted, alphaInverted)
NamespacesOpenMetaverseColor4FromBytes( array< Byte > [] () [] [] , Int32, Boolean, Boolean)
Builds a color from a byte array
Declaration Syntax
C#
public 
void 
FromBytes(
        
byte[] 
byteArray,
        
int 
pos,
        
bool 
inverted,
        
bool 
alphaInverted
)
Parameters
byteArray ( array< Byte > [] () [] [] )
Byte array containing a 16 byte color
pos ( Int32)
Beginning position in the byte array
inverted ( Boolean)
True if the byte array stores inverted values, otherwise false. For example the color black (fully opaque) inverted would be 0xFF 0xFF 0xFF 0x00
alphaInverted ( Boolean)
True if the alpha value is inverted in addition to whatever the inverted parameter is. Setting inverted true and alphaInverted true will flip the alpha value back to non-inverted, but keep the other color bytes inverted

Assembly: OpenMetaverseTypes(Module: OpenMetaverseTypes.dll) Version: 0.0.0.0