Esempio n. 1
0
        /*
         * Error handling routines (these replace corresponding
         * IJG routines).  These are used for both
         * compression and decompression.
         */
        public override void error_exit()
        {
            string buffer = format_message();

            Tiff.ErrorExt(m_sp.GetTiff(), m_sp.GetTiff().m_clientdata, "JPEGLib", "{0}", buffer); /* display the error message */

            // clean up LibJpeg.Net state
            m_sp.m_common.jpeg_abort();

            throw new Exception(buffer);
        }
Esempio n. 2
0
        public override void init_source()
        {
            Tiff tif = m_sp.GetTiff();

            initInternalBuffer(tif.m_rawdata, tif.m_rawcc);
        }