CSJ2K.Icc.Types.ICCDateTime.write C# (CSharp) Метод

write() публичный Метод

Write an ICCDateTime to a file.
public write ( System raf ) : void
raf System
Результат void
        public virtual void write(System.IO.Stream raf)
        {
            System.IO.BinaryWriter temp_BinaryWriter;
            temp_BinaryWriter = new System.IO.BinaryWriter(raf);
            temp_BinaryWriter.Write((System.Int16) wYear);
            System.IO.BinaryWriter temp_BinaryWriter2;
            temp_BinaryWriter2 = new System.IO.BinaryWriter(raf);
            temp_BinaryWriter2.Write((System.Int16) wMonth);
            System.IO.BinaryWriter temp_BinaryWriter3;
            temp_BinaryWriter3 = new System.IO.BinaryWriter(raf);
            temp_BinaryWriter3.Write((System.Int16) wDay);
            System.IO.BinaryWriter temp_BinaryWriter4;
            temp_BinaryWriter4 = new System.IO.BinaryWriter(raf);
            temp_BinaryWriter4.Write((System.Int16) wHours);
            System.IO.BinaryWriter temp_BinaryWriter5;
            temp_BinaryWriter5 = new System.IO.BinaryWriter(raf);
            temp_BinaryWriter5.Write((System.Int16) wMinutes);
            System.IO.BinaryWriter temp_BinaryWriter6;
            temp_BinaryWriter6 = new System.IO.BinaryWriter(raf);
            temp_BinaryWriter6.Write((System.Int16) wSeconds);
        }

Usage Example

Пример #1
0
 /// <summary> Write out this ICCProfile header to a RandomAccessFile</summary>
 /// <param name="raf">sink for data
 /// </param>
 /// <exception cref="IOException">
 /// </exception>
 //UPGRADE_TODO: Class 'java.io.RandomAccessFile' was converted to 'System.IO.FileStream' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioRandomAccessFile'"
 public virtual void  write(System.IO.Stream raf)
 {
     raf.Seek(offProfileSize, System.IO.SeekOrigin.Begin); raf.WriteByte((System.Byte)dwProfileSize);
     raf.Seek(offCMMTypeSignature, System.IO.SeekOrigin.Begin); raf.WriteByte((System.Byte)dwCMMTypeSignature);
     raf.Seek(offProfileVersion, System.IO.SeekOrigin.Begin); profileVersion.write(raf);
     raf.Seek(offProfileClass, System.IO.SeekOrigin.Begin); raf.WriteByte((System.Byte)dwProfileClass);
     raf.Seek(offColorSpaceType, System.IO.SeekOrigin.Begin); raf.WriteByte((System.Byte)dwColorSpaceType);
     raf.Seek(offPCSType, System.IO.SeekOrigin.Begin); raf.WriteByte((System.Byte)dwPCSType);
     raf.Seek(offDateTime, System.IO.SeekOrigin.Begin); dateTime.write(raf);
     raf.Seek(offProfileSignature, System.IO.SeekOrigin.Begin); raf.WriteByte((System.Byte)dwProfileSignature);
     raf.Seek(offPlatformSignature, System.IO.SeekOrigin.Begin); raf.WriteByte((System.Byte)dwPlatformSignature);
     raf.Seek(offCMMFlags, System.IO.SeekOrigin.Begin); raf.WriteByte((System.Byte)dwCMMFlags);
     raf.Seek(offDeviceManufacturer, System.IO.SeekOrigin.Begin); raf.WriteByte((System.Byte)dwDeviceManufacturer);
     raf.Seek(offDeviceModel, System.IO.SeekOrigin.Begin); raf.WriteByte((System.Byte)dwDeviceModel);
     raf.Seek(offDeviceAttributes1, System.IO.SeekOrigin.Begin); raf.WriteByte((System.Byte)dwDeviceAttributes1);
     raf.Seek(offDeviceAttributesReserved, System.IO.SeekOrigin.Begin); raf.WriteByte((System.Byte)dwDeviceAttributesReserved);
     raf.Seek(offRenderingIntent, System.IO.SeekOrigin.Begin); raf.WriteByte((System.Byte)dwRenderingIntent);
     raf.Seek(offPCSIlluminant, System.IO.SeekOrigin.Begin); PCSIlluminant.write(raf);
     raf.Seek(offCreatorSig, System.IO.SeekOrigin.Begin); raf.WriteByte((System.Byte)dwCreatorSig);
     raf.Seek(offReserved, System.IO.SeekOrigin.Begin);
     raf.Write(reserved, 0, reserved.Length);
     //SupportClass.RandomAccessFileSupport.WriteRandomFile(reserved, raf);
 }