/// <summary>
        /// Reads a <see cref="IccScreeningTagDataEntry"/>
        /// </summary>
        /// <returns>The read entry</returns>
        public IccScreeningTagDataEntry ReadScreeningTagDataEntry()
        {
            var  flags        = (IccScreeningFlag)this.ReadInt32();
            uint channelCount = this.ReadUInt32();

            IccScreeningChannel[] channels = new IccScreeningChannel[channelCount];
            for (int i = 0; i < channels.Length; i++)
            {
                channels[i] = this.ReadScreeningChannel();
            }

            return(new IccScreeningTagDataEntry(flags, channels));
        }
예제 #2
0
 /// <summary>
 /// Writes a screening channel
 /// </summary>
 /// <param name="value">The value to write</param>
 /// <returns>the number of bytes written</returns>
 public int WriteScreeningChannel(IccScreeningChannel value)
 {
     return(this.WriteFix16(value.Frequency)
            + this.WriteFix16(value.Angle)
            + this.WriteInt32((int)value.SpotShape));
 }