CSJ2K.Icc.Tags.ICCTextDescriptionType.ICCTextDescriptionType C# (CSharp) Method

ICCTextDescriptionType() protected method

Construct this tag from its constituant parts
protected ICCTextDescriptionType ( int signature, byte data, int offset, int length ) : System
signature int tag id ///
data byte array of bytes ///
offset int to data in the data array ///
length int of data in the data array ///
return System
        protected internal ICCTextDescriptionType(int signature, byte[] data, int offset, int length)
            : base(signature, data, offset, length)
        {
            type = ICCProfile.getInt(data, offset);
            offset += ICCProfile.int_size;

            reserved = ICCProfile.getInt(data, offset);
            offset += ICCProfile.int_size;

            size = ICCProfile.getInt(data, offset);
            offset += ICCProfile.int_size;

            ascii = new byte[size - 1];
            Array.Copy(data, offset, ascii, 0, size - 1);
        }