BitMiracle.LibTiff.Classic.Tiff.UnRegisterCodec C# (CSharp) Method

UnRegisterCodec() public method

Removes specified codec from a list of registered codecs.
public UnRegisterCodec ( TiffCodec codec ) : void
codec TiffCodec The codec to remove from a list of registered codecs.
return void
        public void UnRegisterCodec(TiffCodec codec)
        {
            if (m_registeredCodecs == null)
                return;

            codecList temp;
            if (m_registeredCodecs.codec == codec)
            {
                temp = m_registeredCodecs.next;
                m_registeredCodecs = temp;
                return;
            }

            for (codecList list = m_registeredCodecs; list != null; list = list.next)
            {
                if (list.next != null)
                {
                    if (list.next.codec == codec)
                    {
                        temp = list.next.next;
                        list.next = temp;
                        return;
                    }
                }
            }

            ErrorExt(this, 0, "UnRegisterCodec",
                "Cannot remove compression scheme {0}; not registered", codec.m_name);
        }
Tiff