corrade-vassal – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 vero 1 using System;
2 using CSJ2K.Icc;
3 using CSJ2K.Icc.Types;
4  
5 namespace CSJ2K.Icc.Tags
6 {
7 public class ICCViewType : ICCTag
8 {
9 new public int type;
10 public int reserved;
11 public XYZNumber CIEilluminant;
12 public XYZNumber CIEsurround;
13 public int illuminant;
14  
15 /// <summary> Construct this tag from its constituant parts</summary>
16 /// <param name="signature">tag id</param>
17 /// <param name="data">array of bytes</param>
18 /// <param name="offset">to data in the data array</param>
19 /// <param name="length">of data in the data array</param>
20 protected internal ICCViewType(int signature, byte[] data, int offset, int length)
21 : base(signature, data, offset, offset + 2 * ICCProfile.int_size)
22 {
23 type = ICCProfile.getInt(data, offset);
24 reserved = ICCProfile.getInt(data, offset + ICCProfile.int_size);
25 CIEilluminant = ICCProfile.getXYZNumber(data, offset + ICCProfile.int_size);
26 CIEsurround = ICCProfile.getXYZNumber(data, offset + (ICCProfile.int_size*3));
27 illuminant = ICCProfile.getInt(data, offset + (ICCProfile.int_size * 3));
28 }
29 }
30 }