/// <summary>
        /// Writes a <see cref="IccColorantTableTagDataEntry"/>
        /// </summary>
        /// <param name="value">The entry to write</param>
        /// <returns>The number of bytes written</returns>
        public int WriteColorantTableTagDataEntry(IccColorantTableTagDataEntry value)
        {
            int count = this.WriteUInt32((uint)value.ColorantData.Length);

            for (int i = 0; i < value.ColorantData.Length; i++)
            {
                ref IccColorantTableEntry colorant = ref value.ColorantData[i];

                count += this.WriteAsciiString(colorant.Name, 32, true);
                count += this.WriteUInt16(colorant.Pcs1);
                count += this.WriteUInt16(colorant.Pcs2);
                count += this.WriteUInt16(colorant.Pcs3);
            }
Пример #2
0
        /// <summary>
        /// Writes a <see cref="IccColorantTableTagDataEntry"/>
        /// </summary>
        /// <param name="value">The entry to write</param>
        /// <returns>The number of bytes written</returns>
        public int WriteColorantTableTagDataEntry(IccColorantTableTagDataEntry value)
        {
            int count = this.WriteUInt32((uint)value.ColorantData.Length);

            foreach (IccColorantTableEntry colorant in value.ColorantData)
            {
                count += this.WriteAsciiString(colorant.Name, 32, true);
                count += this.WriteUInt16(colorant.Pcs1);
                count += this.WriteUInt16(colorant.Pcs2);
                count += this.WriteUInt16(colorant.Pcs3);
            }

            return(count);
        }