Date Time format for tags
Esempio n. 1
0
        /// <summary> Construct a header from a complete ICCProfile</summary>
        /// <param name="byte">[] -- holds ICCProfile contents
        /// </param>
        public ICCProfileHeader(byte[] data)
        {
            dwProfileSize              = ICCProfile.getInt(data, offProfileSize);
            dwCMMTypeSignature         = ICCProfile.getInt(data, offCMMTypeSignature);
            dwProfileClass             = ICCProfile.getInt(data, offProfileClass);
            dwColorSpaceType           = ICCProfile.getInt(data, offColorSpaceType);
            dwPCSType                  = ICCProfile.getInt(data, offPCSType);
            dwProfileSignature         = ICCProfile.getInt(data, offProfileSignature);
            dwPlatformSignature        = ICCProfile.getInt(data, offPlatformSignature);
            dwCMMFlags                 = ICCProfile.getInt(data, offCMMFlags);
            dwDeviceManufacturer       = ICCProfile.getInt(data, offDeviceManufacturer);
            dwDeviceModel              = ICCProfile.getInt(data, offDeviceModel);
            dwDeviceAttributes1        = ICCProfile.getInt(data, offDeviceAttributesReserved);
            dwDeviceAttributesReserved = ICCProfile.getInt(data, offDeviceAttributesReserved);
            dwRenderingIntent          = ICCProfile.getInt(data, offRenderingIntent);
            dwCreatorSig               = ICCProfile.getInt(data, offCreatorSig);
            profileVersion             = ICCProfile.getICCProfileVersion(data, offProfileVersion);
            dateTime      = ICCProfile.getICCDateTime(data, offDateTime);
            PCSIlluminant = ICCProfile.getXYZNumber(data, offPCSIlluminant);

            for (int i = 0; i < reserved.Length; ++i)
            {
                reserved[i] = data[offReserved + i];
            }
        }
Esempio n. 2
0
		/// <summary> Construct a header from a complete ICCProfile</summary>
		/// <param name="byte">[] -- holds ICCProfile contents
		/// </param>
		public ICCProfileHeader(byte[] data)
		{

            dwProfileSize = ICCProfile.getInt(data, offProfileSize);
            dwCMMTypeSignature = ICCProfile.getInt(data, offCMMTypeSignature);
            dwProfileClass = ICCProfile.getInt(data, offProfileClass);
            dwColorSpaceType = ICCProfile.getInt(data, offColorSpaceType);
            dwPCSType = ICCProfile.getInt(data, offPCSType);
            dwProfileSignature = ICCProfile.getInt(data, offProfileSignature);
            dwPlatformSignature = ICCProfile.getInt(data, offPlatformSignature);
            dwCMMFlags = ICCProfile.getInt(data, offCMMFlags);
            dwDeviceManufacturer = ICCProfile.getInt(data, offDeviceManufacturer);
            dwDeviceModel = ICCProfile.getInt(data, offDeviceModel);
            dwDeviceAttributes1 = ICCProfile.getInt(data, offDeviceAttributesReserved);
            dwDeviceAttributesReserved = ICCProfile.getInt(data, offDeviceAttributesReserved);
            dwRenderingIntent = ICCProfile.getInt(data, offRenderingIntent);
            dwCreatorSig = ICCProfile.getInt(data, offCreatorSig);
			profileVersion = ICCProfile.getICCProfileVersion(data, offProfileVersion);
			dateTime = ICCProfile.getICCDateTime(data, offDateTime);
			PCSIlluminant = ICCProfile.getXYZNumber(data, offPCSIlluminant);
			
			for (int i = 0; i < reserved.Length; ++i)
				reserved[i] = data[offReserved + i];
		}