private Tiff() { m_clientdata = 0; m_postDecodeMethod = PostDecodeMethodType.pdmNone; setupBuiltInCodecs(); m_defaultTagMethods = new TiffTagMethods(); if (m_errorHandler == null) { // user did not setup custom handler. // install default m_errorHandler = new TiffErrorHandler(); } }
/// <summary> /// Sets the new tag methods to use. /// </summary> /// <param name="methods">Tag methods.</param> /// <returns>The previously used tag methods.</returns> public TiffTagMethods SetTagMethods(TiffTagMethods methods) { TiffTagMethods prevTagMethods = m_tagmethods; if (methods != null) m_tagmethods = methods; return prevTagMethods; }