CSharpImageLibrary.DDS.DDS_BlockHelpers.Decode565 C# (CSharp) Method

Decode565() static private method

static private Decode565 ( uint wColour ) : RGBColour
wColour uint
return RGBColour
        static RGBColour Decode565(uint wColour)
        {
            RGBColour colour = new RGBColour()
            {
                r = ((wColour >> 11) & 31) * (1f / 31f),
                g = ((wColour >> 5) & 63) * (1f / 63f),
                b = ((wColour >> 0) & 31) * (1f / 31f),
                a = 1f
            };
            return colour;
        }