BitMiracle.LibTiff.Classic.Tiff.SetClientInfo C# (CSharp) 메소드

SetClientInfo() 공개 메소드

Associates extra information with this Tiff.
If there is already an extra information with the name specified by name it will be replaced by the information specified by data.
public SetClientInfo ( object data, string name ) : void
data object The information to associate with this .
name string The name (label) of the information.
리턴 void
        public void SetClientInfo(object data, string name)
        {
            clientInfoLink link = m_clientinfo;

            // Do we have an existing link with this name? If so, just set it.
            while (link != null && link.name != name)
                link = link.next;

            if (link != null)
            {
                link.data = data;
                return;
            }

            // Create a new link.
            link = new clientInfoLink();
            link.next = m_clientinfo;
            link.name = name;
            link.data = data;

            m_clientinfo = link;
        }
Tiff