Exemplo n.º 1
0
        public XYZ Convert(LinearRGB input)
        {
            if (!Equals(input.WorkingSpace, SourceWorkingSpace))
            {
                throw new InvalidOperationException("Working space of input RGB color must be equal to converter source RGB working space.");
            }

            return(new XYZ(_conversionMatrix.Multiply(input.Vector)));
        }
Exemplo n.º 2
0
 public RGB Convert(LinearRGB input) => Compand(input.Vector, input.WorkingSpace);