Exemple #1
0
        private static Color ReadLABColor(EndianBinaryReader reader)
        {
            ushort x = reader.ReadUInt16();
            short  y = reader.ReadInt16();
            short  z = reader.ReadInt16();
            ushort w = reader.ReadUInt16();

            float La = x / 100.0f;
            float Aa = y / 100.0f;
            float Bb = z / 100.0f;

            return(ColorSpaceHelper.LabtoRGB(La, Aa, Bb).ToColor());
        }