internal void ReadOneDimensionalCurve(byte[] data, IccOneDimensionalCurve expected)
        {
            IccDataReader reader = this.CreateReader(data);

            IccOneDimensionalCurve output = reader.ReadOneDimensionalCurve();

            Assert.Equal(expected, output);
        }
Exemplo n.º 2
0
        internal void WriteOneDimensionalCurve(byte[] expected, IccOneDimensionalCurve data)
        {
            IccDataWriter writer = this.CreateWriter();

            writer.WriteOneDimensionalCurve(data);
            byte[] output = writer.GetData();

            Assert.Equal(expected, output);
        }
        /// <summary>
        /// Reads a CurveSet <see cref="IccMultiProcessElement"/>
        /// </summary>
        /// <param name="inChannelCount">Number of input channels</param>
        /// <param name="outChannelCount">Number of output channels</param>
        /// <returns>The read <see cref="IccCurveSetProcessElement"/></returns>
        public IccCurveSetProcessElement ReadCurveSetProcessElement(int inChannelCount, int outChannelCount)
        {
            IccOneDimensionalCurve[] curves = new IccOneDimensionalCurve[inChannelCount];
            for (int i = 0; i < inChannelCount; i++)
            {
                curves[i] = this.ReadOneDimensionalCurve();
                this.AddPadding();
            }

            return(new IccCurveSetProcessElement(curves));
        }