Exemple #1
0
 public override void Load(PdfClown.Bytes.Buffer buffer)
 {
     buffer.Seek(Table.Offset);
     buffer.ReadUnsignedInt();
     buffer.ReadUnsignedInt();
     NumberOfInputChannels  = (byte)buffer.ReadByte();
     NumberOfOutputChannels = (byte)buffer.ReadByte();
     NumberOfCLUTGridPoints = (byte)buffer.ReadByte();
     buffer.ReadByte();
     Encoded00   = buffer.ReadFixed32();
     Encoded01   = buffer.ReadFixed32();
     Encoded02   = buffer.ReadFixed32();
     Encoded10   = buffer.ReadFixed32();
     Encoded11   = buffer.ReadFixed32();
     Encoded12   = buffer.ReadFixed32();
     Encoded20   = buffer.ReadFixed32();
     Encoded21   = buffer.ReadFixed32();
     Encoded22   = buffer.ReadFixed32();
     InputTables = new byte[NumberOfInputChannels];
     for (int i = 0; i < NumberOfInputChannels; i++)
     {
         InputTables[i] = (byte)buffer.ReadByte();
     }
     CLUTValues = new byte[NumberOfCLUTGridPoints];
     for (int i = 0; i < NumberOfCLUTGridPoints; i++)
     {
         CLUTValues[i] = (byte)buffer.ReadByte();
     }
     OutputTables = new byte[NumberOfOutputChannels];
     for (int i = 0; i < NumberOfOutputChannels; i++)
     {
         OutputTables[i] = (byte)buffer.ReadByte();
     }
 }
Exemple #2
0
 public override void Load(PdfClown.Bytes.Buffer buffer)
 {
     buffer.Seek(Table.Offset);
     buffer.ReadUnsignedInt();
     buffer.ReadUnsignedInt();
     DataTime.Load(buffer);
 }
 public override void Load(PdfClown.Bytes.Buffer buffer)
 {
     buffer.Seek(Table.Offset);
     buffer.ReadUnsignedInt();
     buffer.ReadUnsignedInt();
     StandardObserver = (ICCStandardObserverTypes)buffer.ReadUnsignedInt();
     Backing.Load(buffer);
     Geometry   = (ICCMeasurementGeometryTypes)buffer.ReadUnsignedInt();
     Flare      = (ICCMeasurementFlareTypes)buffer.ReadUnsignedInt();
     Illuminant = (ICCStandardIlluminantTypes)buffer.ReadUnsignedInt();
 }
Exemple #4
0
 public override void Load(PdfClown.Bytes.Buffer buffer)
 {
     buffer.Seek(Table.Offset);
     buffer.ReadUnsignedInt();
     buffer.ReadUnsignedInt();
     Count = buffer.ReadUnsignedInt();
     for (int i = 0; i < Count; i++)
     {
         var platform = new ICCPlatformEncoding();
         platform.Load(buffer);
         Platforms.Add(platform);
     }
 }
 public override void Load(PdfClown.Bytes.Buffer buffer)
 {
     buffer.Seek(Table.Offset);
     buffer.ReadUnsignedInt();
     buffer.ReadUnsignedInt();
     NumberOfDeviceChannels = buffer.ReadUnsignedShort();
     PhosphorOrColorantType = (ICCPhosphorOrColorantTypes)buffer.ReadUnsignedShort();
     Channel1.X             = buffer.ReadFixed32();
     Channel1.Y             = buffer.ReadFixed32();
     Channel2.X             = buffer.ReadFixed32();
     Channel2.Y             = buffer.ReadFixed32();
     Channel3.X             = buffer.ReadFixed32();
     Channel3.Y             = buffer.ReadFixed32();
 }
Exemple #6
0
 public override void Load(PdfClown.Bytes.Buffer buffer)
 {
     buffer.Seek(Table.Offset);
     buffer.ReadUnsignedInt();
     buffer.ReadUnsignedInt();
     ProductNameLength      = buffer.ReadUnsignedInt();
     ProductName            = System.Text.Encoding.ASCII.GetString(buffer.ReadBytes((int)ProductNameLength));
     RenderingIntent0Lenght = buffer.ReadUnsignedInt();
     RenderingIntent0       = System.Text.Encoding.ASCII.GetString(buffer.ReadBytes((int)RenderingIntent0Lenght));
     RenderingIntent1Lenght = buffer.ReadUnsignedInt();
     RenderingIntent1       = System.Text.Encoding.ASCII.GetString(buffer.ReadBytes((int)RenderingIntent1Lenght));
     RenderingIntent2Lenght = buffer.ReadUnsignedInt();
     RenderingIntent2       = System.Text.Encoding.ASCII.GetString(buffer.ReadBytes((int)RenderingIntent2Lenght));
     RenderingIntent3Lenght = buffer.ReadUnsignedInt();
     RenderingIntent3       = System.Text.Encoding.ASCII.GetString(buffer.ReadBytes((int)RenderingIntent3Lenght));
 }
Exemple #7
0
 public override void Load(PdfClown.Bytes.Buffer buffer)
 {
     buffer.Seek(Table.Offset);
     buffer.ReadUnsignedInt();
     buffer.ReadUnsignedInt();
     Count  = buffer.ReadUnsignedInt();
     Values = new ushort[Count];
     if (Count > 1)
     {
         for (int i = 0; i < Count; i++)
         {
             Values[i] = buffer.ReadUnsignedShort();
         }
     }
     else if (Count == 1)
     {
         Gamma = buffer.ReadFixed16();
     }
 }