public static ICCTagData ReadTagData(byte[] iccData, ICCTag tag, ICCHeader header)
        {
            dataSize = tag.Size;
            TypeSignature tagType =
                (TypeSignature)HighEndianReader.GetUint32(iccData, (int)tag.Offset, IsLittleEndian);

            return(ReadTagData(tagType, iccData, (int)tag.Offset + 8, header));
        }
Esempio n. 2
0
 public void Read(byte[] iccData)
 {
     TagCount = HighEndianReader.GetUint32(iccData, TagOffset, isLittleEndian);
     Tags     = new List <ICCTag>((int)TagCount);
     for (int i = 0; i < TagCount; i++)
     {
         int    startIndex = TagOffset + 4 + i * 12;
         uint   sig        = HighEndianReader.GetUint32(iccData, startIndex, isLittleEndian);
         uint   offset     = HighEndianReader.GetUint32(iccData, startIndex + 4, isLittleEndian);
         uint   size       = HighEndianReader.GetUint32(iccData, startIndex + 8, isLittleEndian);
         ICCTag tag        = new ICCTag(sig, offset, size);
         Tags.Add(tag);
     }
 }