CSJ2K.j2k.codestream.HeaderInfo.COM.ToString C# (CSharp) Method

ToString() public method

Display information found in the COM marker segment
public ToString ( ) : System.String
return System.String
            public override System.String ToString()
            {
                System.String str = "\n --- COM (" + lcom + " bytes) ---\n";
                if (rcom == 0)
                {
                    str += " Registration : General use (binary values)\n";
                }
                else if (rcom == 1)
                {
                    str += (" Registration : General use (IS 8859-15:1999 " + "(Latin) values)\n");
                    str += (" Text         : " + System.Text.Encoding.UTF8.GetString(ccom, 0, ccom.Length) + "\n");
                }
                else
                {
                    str += " Registration : Unknown\n";
                }
                str += "\n";
                return str;
            }