corrade-vassal – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 vero 1 /// <summary>**************************************************************************
2 ///
3 /// $Id: ICCTextDescriptionType.java,v 1.1 2002/07/25 14:56:37 grosbois Exp $
4 ///
5 /// Copyright Eastman Kodak Company, 343 State Street, Rochester, NY 14650
6 /// $Date $
7 /// ***************************************************************************
8 /// </summary>
9 using System;
10 using ICCProfile = CSJ2K.Icc.ICCProfile;
11 namespace CSJ2K.Icc.Tags
12 {
13  
14 /// <summary> A text based ICC tag
15 ///
16 /// </summary>
17 /// <version> 1.0
18 /// </version>
19 /// <author> Bruce A. Kern
20 /// </author>
21 public class ICCTextDescriptionType:ICCTag
22 {
23  
24 /// <summary>Tag fields </summary>
25 //UPGRADE_NOTE: Final was removed from the declaration of 'type '. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1003'"
26 new public int type;
27 /// <summary>Tag fields </summary>
28 //UPGRADE_NOTE: Final was removed from the declaration of 'reserved '. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1003'"
29 public int reserved;
30 /// <summary>Tag fields </summary>
31 //UPGRADE_NOTE: Final was removed from the declaration of 'size '. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1003'"
32 public int size;
33 /// <summary>Tag fields </summary>
34 //UPGRADE_NOTE: Final was removed from the declaration of 'ascii '. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1003'"
35 public byte[] ascii;
36  
37 /// <summary> Construct this tag from its constituant parts</summary>
38 /// <param name="signature">tag id
39 /// </param>
40 /// <param name="data">array of bytes
41 /// </param>
42 /// <param name="offset">to data in the data array
43 /// </param>
44 /// <param name="length">of data in the data array
45 /// </param>
46 protected internal ICCTextDescriptionType(int signature, byte[] data, int offset, int length):base(signature, data, offset, length)
47 {
48  
49 type = ICCProfile.getInt(data, offset);
50 offset += ICCProfile.int_size;
51  
52 reserved = ICCProfile.getInt(data, offset);
53 offset += ICCProfile.int_size;
54  
55 size = ICCProfile.getInt(data, offset);
56 offset += ICCProfile.int_size;
57  
58 ascii = new byte[size - 1];
59 Array.Copy(data, offset, ascii, 0, size - 1);
60 }
61  
62 /// <summary>Return the string rep of this tag. </summary>
63 public override System.String ToString()
64 {
65 return "[" + base.ToString() + " \"" + System.Text.ASCIIEncoding.ASCII.GetString(ascii) + "\"]";
66 }
67  
68 /* end class ICCTextDescriptionType */
69 }
70 }