BCH.BCHTool.GetRGBA4444 C# (CSharp) Method

GetRGBA4444() private method

private GetRGBA4444 ( Color c ) : ushort
c Color
return ushort
        private ushort GetRGBA4444(Color c)
        {
            int val = 0;
            val += (c.A / 0x11);
            val += ((c.B / 0x11) << 4);
            val += ((c.G / 0x11) << 8);
            val += ((c.R / 0x11) << 12);
            return (ushort)val;
        }