Ejemplo n.º 1
0
 /// <summary>
 /// Sets an instance of the <see cref="TiffErrorHandler"/> class as custom library-wide
 /// error and warning handler.
 /// </summary>
 /// <param name="errorHandler">An instance of the <see cref="TiffErrorHandler"/> class
 /// to set as custom library-wide error and warning handler.</param>
 /// <returns>
 /// Previous error handler or <c>null</c> if there was no error handler set.
 /// </returns>
 public static TiffErrorHandler SetErrorHandler(TiffErrorHandler errorHandler)
 {
     TiffErrorHandler prev = m_errorHandler;
     m_errorHandler = errorHandler;
     return prev;
 }
Ejemplo n.º 2
0
        private Tiff()
        {
            m_clientdata = 0;
            m_postDecodeMethod = PostDecodeMethodType.pdmNone;

            setupBuiltInCodecs();

            m_defaultTagMethods = new TiffTagMethods();

            m_defaultErrorHandler = null;
            if (m_errorHandler == null)
            {
                // user did not setup custom handler.
                // install default
                m_defaultErrorHandler = new TiffErrorHandler();
                m_errorHandler = m_defaultErrorHandler;
            }
        }