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

RegisterCodec() public method

Adds specified codec to a list of registered codec.
This method can be used to augment or override the set of codecs available to an application. If the codec is for a scheme that already has a registered codec then it is overridden and any images with data encoded with this compression scheme will be decoded using the supplied codec.
public RegisterCodec ( TiffCodec codec ) : void
codec TiffCodec The codec to register.
return void
        public void RegisterCodec(TiffCodec codec)
        {
            if (codec == null)
                throw new ArgumentNullException("codec");

            codecList list = new codecList();
            list.codec = codec;
            list.next = m_registeredCodecs;
            m_registeredCodecs = list;
        }
Tiff