public override void GetTagData(byte[] iccData, int index, ICCHeader header) { CurvePointCount = HighEndianReader.GetUint32(iccData, index, IsLittleEndian); CurveData = new double[CurvePointCount]; if (CurvePointCount == 1) { CurveData[0] = HighEndianReader.GetU8Fixed8NumberToDouble(iccData, index + 4, IsLittleEndian); //end = index + 6; } else { for (int i = 0; i < CurvePointCount; i++) { int startIndex = index + 4 + 2 * i; CurveData[i] = HighEndianReader.GetUInt16(iccData, startIndex, IsLittleEndian) / 65535d; } //int c = 0; end = (idx + 4) + (int)CurvePointCount * 2; } }